LabeledPrice.deserialize constructor
LabeledPrice.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory LabeledPrice.deserialize(BinaryReader reader) {
// Read [LabeledPrice] fields.
final label = reader.readString();
final amount = reader.readInt64();
// Construct [LabeledPrice] object.
final returnValue = LabeledPrice(label: label, amount: amount);
// Now return the deserialized [LabeledPrice].
return returnValue;
}