AuthExportedAuthorization.deserialize constructor

AuthExportedAuthorization.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AuthExportedAuthorization.deserialize(BinaryReader reader) {
  // Read [AuthExportedAuthorization] fields.
  final id = reader.readInt64();
  final bytes = reader.readBytes();

  // Construct [AuthExportedAuthorization] object.
  final returnValue = AuthExportedAuthorization(
    id: id,
    bytes: bytes,
  );

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