EmailAuth.fromJson constructor

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

Implementation

factory EmailAuth.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return EmailAuth(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    userId:
        serializationManager.deserialize<int>(jsonSerialization['userId']),
    email:
        serializationManager.deserialize<String>(jsonSerialization['email']),
    hash: serializationManager.deserialize<String>(jsonSerialization['hash']),
  );
}