ContactsUpdateContactNote.deserialize constructor

ContactsUpdateContactNote.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ContactsUpdateContactNote.deserialize(BinaryReader reader) {
  // Read [ContactsUpdateContactNote] fields.
  final id = reader.readObject() as InputUserBase;
  final note = reader.readObject() as TextWithEntitiesBase;

  // Construct [ContactsUpdateContactNote] object.
  final returnValue = ContactsUpdateContactNote(id: id, note: note);

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