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,
      );