PopularContact.deserialize constructor

PopularContact.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PopularContact.deserialize(BinaryReader reader) {
  // Read [PopularContact] fields.
  final clientId = reader.readInt64();
  final importers = reader.readInt32();

  // Construct [PopularContact] object.
  final returnValue = PopularContact(
    clientId: clientId,
    importers: importers,
  );

  // Now return the deserialized [PopularContact].
  return returnValue;
}