GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest.fromJson constructor

GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest.fromJson(core.Map json_)
    : this(
        idToken: json_.containsKey('idToken')
            ? json_['idToken'] as core.String
            : null,
        phoneEnrollmentInfo: json_.containsKey('phoneEnrollmentInfo')
            ? GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo.fromJson(
                json_['phoneEnrollmentInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
        tenantId: json_.containsKey('tenantId')
            ? json_['tenantId'] as core.String
            : null,
        totpEnrollmentInfo: json_.containsKey('totpEnrollmentInfo')
            ? GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo
                .fromJson(json_['totpEnrollmentInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );