GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse.fromJson constructor

GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse.fromJson(
    core.Map json_)
    : this(
        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,
        isNewUser: json_.containsKey('isNewUser')
            ? json_['isNewUser'] as core.bool
            : 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,
        refreshToken: json_.containsKey('refreshToken')
            ? json_['refreshToken'] as core.String
            : null,
      );