MultiFactorSettings.fromResponse constructor

MultiFactorSettings.fromResponse(
  1. GoogleCloudIdentitytoolkitV1UserInfo response
)

Implementation

factory MultiFactorSettings.fromResponse(
  auth1.GoogleCloudIdentitytoolkitV1UserInfo response,
) {
  final parsedEnrolledFactors = <MultiFactorInfo>[
    ...?response.mfaInfo?.map(MultiFactorInfo.initMultiFactorInfo).nonNulls,
  ];

  return MultiFactorSettings(
    enrolledFactors: UnmodifiableListView(parsedEnrolledFactors),
  );
}