GraphqlApi.fromJson constructor

GraphqlApi.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GraphqlApi.fromJson(Map<String, dynamic> json) {
  return GraphqlApi(
    additionalAuthenticationProviders:
        (json['additionalAuthenticationProviders'] as List?)
            ?.whereNotNull()
            .map((e) => AdditionalAuthenticationProvider.fromJson(
                e as Map<String, dynamic>))
            .toList(),
    apiId: json['apiId'] as String?,
    arn: json['arn'] as String?,
    authenticationType:
        (json['authenticationType'] as String?)?.toAuthenticationType(),
    logConfig: json['logConfig'] != null
        ? LogConfig.fromJson(json['logConfig'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
    openIDConnectConfig: json['openIDConnectConfig'] != null
        ? OpenIDConnectConfig.fromJson(
            json['openIDConnectConfig'] as Map<String, dynamic>)
        : null,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    uris: (json['uris'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    userPoolConfig: json['userPoolConfig'] != null
        ? UserPoolConfig.fromJson(
            json['userPoolConfig'] as Map<String, dynamic>)
        : null,
    wafWebAclArn: json['wafWebAclArn'] as String?,
    xrayEnabled: json['xrayEnabled'] as bool?,
  );
}