PhoneMultiFactorInfo.fromResponse constructor

  1. @internal
PhoneMultiFactorInfo.fromResponse(
  1. GoogleCloudIdentitytoolkitV1MfaEnrollment response
)

Initializes the PhoneMultiFactorInfo object using the server side response.

Implementation

@internal
PhoneMultiFactorInfo.fromResponse(super.response)
    : phoneNumber = response.phoneInfo,
      factorId = response.phoneInfo != null ? MultiFactorId.phone : throw 42,
      super.fromResponse();