IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJson constructor

IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJson(
  1. Map json_
)

Implementation

IdentitytoolkitRelyingpartySetProjectConfigRequest.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,
        delegatedProjectNumber: json_.containsKey('delegatedProjectNumber')
            ? json_['delegatedProjectNumber'] 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,
        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,
      );