MultiFactorSettings.fromResponse constructor
MultiFactorSettings.fromResponse(
- GoogleCloudIdentitytoolkitV1UserInfo response
Implementation
factory MultiFactorSettings.fromResponse(
auth1.GoogleCloudIdentitytoolkitV1UserInfo response,
) {
final parsedEnrolledFactors = <MultiFactorInfo>[
...?response.mfaInfo
?.map(MultiFactorInfo.initMultiFactorInfo)
.whereNotNull(),
];
return MultiFactorSettings(
enrolledFactors: UnmodifiableListView(parsedEnrolledFactors),
);
}