public static StateMachine.Builder fromJson(String json) {
        try {
            return MAPPER.readValue(json, StateMachine.Builder.class);
        } catch (IOException e) {
            throw new SdkClientException(
                    String.format("Could not deserialize state machine.\n%s", json), e);
        }
    }
Deserializes a JSON representation of a state machine into a {@link StateMachine.Builder} .

@param json JSON representing State machine.
@return Mutable {@link StateMachine.Builder} deserialized from JSON representation.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StateMachine.java