public Object construct()

in extension-base/src/main/java/com/azure/autorest/extension/base/model/codemodel/CodeModelCustomConstructor.java [38:72]


        public Object construct(Node node) {
            Class<?> type = node.getType();
            if (type.equals(Schema.AllSchemaTypes.class)) {
                return Schema.AllSchemaTypes.fromValue(((ScalarNode) node).getValue());
            }/* else if (type.equals(ChoiceSchema.Type.class)) {
                return ChoiceSchema.Type.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(SealedChoiceSchema.Type.class)) {
                return SealedChoiceSchema.Type.fromValue(((ScalarNode) node).getValue());
            }*/ else if (type.equals(Parameter.ImplementationLocation.class)) {
                return Parameter.ImplementationLocation.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(DateTimeSchema.Format.class)) {
                return DateTimeSchema.Format.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(ByteArraySchema.Format.class)) {
                return ByteArraySchema.Format.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(RequestParameterLocation.class)) {
                return RequestParameterLocation.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(SerializationStyle.class)) {
                return SerializationStyle.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(KnownMediaType.class)) {
                return KnownMediaType.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(Scheme.SecuritySchemeType.class)) {
                return Scheme.SecuritySchemeType.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(TestScenarioStepType.class)) {
                return TestScenarioStepType.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(ScenarioTestScope.class)) {
                return ScenarioTestScope.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(SchemaContext.class)) {
                return SchemaContext.fromValue(((ScalarNode) node).getValue());
            } else if (type.equals(DurationSchema.Format.class)) {
                return DurationSchema.Format.fromValue(((ScalarNode) node).getValue());
            } else {
                // create JavaBean
                return super.construct(node);
            }
        }