AppleIdCredential.fromMap constructor

AppleIdCredential.fromMap(
  1. Map map
)

Implementation

factory AppleIdCredential.fromMap(Map map) {
  // assert(map != null);

  return AppleIdCredential(
    identityToken: map['identityToken'],
    authorizationCode: map['authorizationCode'],
    state: map['state'],
    user: map['user'],
    authorizedScopes: _scopesFromList(map['authorizedScopes']),
    email: map['email'],
    realUserStatus: map.containsKey('realUserStatus')
        ? UserDetectionStatus.values[map['realUserStatus']]
        : UserDetectionStatus.unsupported,
    fullName: PersonNameComponents.fromMap(map['fullName']),
  );
}