GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest.fromJson constructor

GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest.fromJson(
    core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        idToken: json_.containsKey('idToken')
            ? json_['idToken'] as core.String
            : null,
        phoneVerificationInfo: json_.containsKey('phoneVerificationInfo')
            ? GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo
                .fromJson(json_['phoneVerificationInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
        tenantId: json_.containsKey('tenantId')
            ? json_['tenantId'] as core.String
            : null,
        totpVerificationInfo: json_.containsKey('totpVerificationInfo')
            ? GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo
                .fromJson(json_['totpVerificationInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );