Config.fromJson constructor
Implementation
factory Config.fromJson(Map<String, dynamic> map) {
return Config(
serializerSuffix: map['serializerSuffix'] as String?,
graphqlTypeSuffix: map['graphqlTypeSuffix'] as String?,
unionKeySuffix: map['unionKeySuffix'] as String?,
graphQLFieldSuffix: map['graphQLFieldSuffix'] as String?,
nullableFields: map['nullableFields'] as bool?,
omitFields: map['omitFields'] as bool?,
omitPrivateFields: map['omitPrivateFields'] as bool?,
omitFieldsNamed: (map['omitFieldsNamed'] as List?)?.cast<String>(),
instantiateCode: map['instantiateCode'] as String?,
enumValuesCase: parseEnumCase(map['enumValuesCase'] as String?),
customTypes: map['customTypes'] == null
? []
: List.of(
(map['customTypes'] as List).map(
(Object? e) => CustomTypes.fromJson((e as Map).cast()),
),
),
);
}