GoogleCloudIdentitytoolkitV1SignUpRequest.fromJson constructor

GoogleCloudIdentitytoolkitV1SignUpRequest.fromJson(
  1. Map _json
)

Implementation

GoogleCloudIdentitytoolkitV1SignUpRequest.fromJson(core.Map _json)
    : this(
        captchaChallenge: _json.containsKey('captchaChallenge')
            ? _json['captchaChallenge'] as core.String
            : null,
        captchaResponse: _json.containsKey('captchaResponse')
            ? _json['captchaResponse'] as core.String
            : null,
        disabled: _json.containsKey('disabled')
            ? _json['disabled'] as core.bool
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        email:
            _json.containsKey('email') ? _json['email'] as core.String : null,
        emailVerified: _json.containsKey('emailVerified')
            ? _json['emailVerified'] as core.bool
            : null,
        idToken: _json.containsKey('idToken')
            ? _json['idToken'] as core.String
            : null,
        instanceId: _json.containsKey('instanceId')
            ? _json['instanceId'] as core.String
            : null,
        localId: _json.containsKey('localId')
            ? _json['localId'] as core.String
            : null,
        mfaInfo: _json.containsKey('mfaInfo')
            ? (_json['mfaInfo'] as core.List)
                .map((value) =>
                    GoogleCloudIdentitytoolkitV1MfaFactor.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        password: _json.containsKey('password')
            ? _json['password'] as core.String
            : null,
        phoneNumber: _json.containsKey('phoneNumber')
            ? _json['phoneNumber'] as core.String
            : null,
        photoUrl: _json.containsKey('photoUrl')
            ? _json['photoUrl'] as core.String
            : null,
        targetProjectId: _json.containsKey('targetProjectId')
            ? _json['targetProjectId'] as core.String
            : null,
        tenantId: _json.containsKey('tenantId')
            ? _json['tenantId'] as core.String
            : null,
      );