asMap method

  1. @override
Map<String, String?> asMap()
override

Returns the current instance as a serialized Map.

Implementation

@override
Map<String, String?> asMap() {
  return <String, String?>{
    'providerId': providerId,
    'signInMethod': signInMethod,
    'idToken': idToken,
    'accessToken': accessToken,
    'secret': secret,
    'rawNonce': rawNonce,
    'serverAuthCode': serverAuthCode,
    'familyName': appleFullPersonName?.familyName,
    'givenName': appleFullPersonName?.givenName,
    'middleName': appleFullPersonName?.middleName,
    'nickname': appleFullPersonName?.nickname,
    'namePrefix': appleFullPersonName?.namePrefix,
    'nameSuffix': appleFullPersonName?.nameSuffix,
  };
}