AppleAuthInfo.fromJson constructor

AppleAuthInfo.fromJson(
  1. Map<String, dynamic> jsonSerialization,
  2. SerializationManager serializationManager
)

Implementation

factory AppleAuthInfo.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return AppleAuthInfo(
    userIdentifier: serializationManager
        .deserialize<String>(jsonSerialization['userIdentifier']),
    email:
        serializationManager.deserialize<String?>(jsonSerialization['email']),
    fullName: serializationManager
        .deserialize<String>(jsonSerialization['fullName']),
    nickname: serializationManager
        .deserialize<String>(jsonSerialization['nickname']),
    identityToken: serializationManager
        .deserialize<String>(jsonSerialization['identityToken']),
    authorizationCode: serializationManager
        .deserialize<String>(jsonSerialization['authorizationCode']),
  );
}