code: 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);
          }
      }
docs: 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.