GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse.fromJson constructor

GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse.fromJson(
  1. Map _json
)

Implementation

GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse.fromJson(
    core.Map _json)
    : this(
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        email:
            _json.containsKey('email') ? _json['email'] as core.String : null,
        expiresIn: _json.containsKey('expiresIn')
            ? _json['expiresIn'] as core.String
            : null,
        idToken: _json.containsKey('idToken')
            ? _json['idToken'] as core.String
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] 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) =>
                    GoogleCloudIdentitytoolkitV1MfaEnrollment.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        mfaPendingCredential: _json.containsKey('mfaPendingCredential')
            ? _json['mfaPendingCredential'] as core.String
            : null,
        oauthAccessToken: _json.containsKey('oauthAccessToken')
            ? _json['oauthAccessToken'] as core.String
            : null,
        oauthAuthorizationCode: _json.containsKey('oauthAuthorizationCode')
            ? _json['oauthAuthorizationCode'] as core.String
            : null,
        oauthExpireIn: _json.containsKey('oauthExpireIn')
            ? _json['oauthExpireIn'] as core.int
            : null,
        profilePicture: _json.containsKey('profilePicture')
            ? _json['profilePicture'] as core.String
            : null,
        refreshToken: _json.containsKey('refreshToken')
            ? _json['refreshToken'] as core.String
            : null,
        registered: _json.containsKey('registered')
            ? _json['registered'] as core.bool
            : null,
      );