PaymentsExportInvoice.deserialize constructor

PaymentsExportInvoice.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PaymentsExportInvoice.deserialize(BinaryReader reader) {
  // Read [PaymentsExportInvoice] fields.
  final invoiceMedia = reader.readObject() as InputMediaBase;

  // Construct [PaymentsExportInvoice] object.
  final returnValue = PaymentsExportInvoice(
    invoiceMedia: invoiceMedia,
  );

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