IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson constructor

IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(
  1. Map json_
)

Implementation

IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(core.Map json_)
    : this(
        allowPasswordUser: json_.containsKey('allowPasswordUser')
            ? json_['allowPasswordUser'] as core.bool
            : null,
        apiKey: json_.containsKey('apiKey')
            ? json_['apiKey'] as core.String
            : null,
        authorizedDomains: json_.containsKey('authorizedDomains')
            ? (json_['authorizedDomains'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        changeEmailTemplate: json_.containsKey('changeEmailTemplate')
            ? EmailTemplate.fromJson(json_['changeEmailTemplate']
                as core.Map<core.String, core.dynamic>)
            : null,
        dynamicLinksDomain: json_.containsKey('dynamicLinksDomain')
            ? json_['dynamicLinksDomain'] as core.String
            : null,
        enableAnonymousUser: json_.containsKey('enableAnonymousUser')
            ? json_['enableAnonymousUser'] as core.bool
            : null,
        idpConfig: json_.containsKey('idpConfig')
            ? (json_['idpConfig'] as core.List)
                .map((value) => IdpConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        legacyResetPasswordTemplate:
            json_.containsKey('legacyResetPasswordTemplate')
                ? EmailTemplate.fromJson(json_['legacyResetPasswordTemplate']
                    as core.Map<core.String, core.dynamic>)
                : null,
        projectId: json_.containsKey('projectId')
            ? json_['projectId'] as core.String
            : null,
        resetPasswordTemplate: json_.containsKey('resetPasswordTemplate')
            ? EmailTemplate.fromJson(json_['resetPasswordTemplate']
                as core.Map<core.String, core.dynamic>)
            : null,
        useEmailSending: json_.containsKey('useEmailSending')
            ? json_['useEmailSending'] as core.bool
            : null,
        verifyEmailTemplate: json_.containsKey('verifyEmailTemplate')
            ? EmailTemplate.fromJson(json_['verifyEmailTemplate']
                as core.Map<core.String, core.dynamic>)
            : null,
      );