PaymentsStarGiftUpgradeAttributes.deserialize constructor

PaymentsStarGiftUpgradeAttributes.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PaymentsStarGiftUpgradeAttributes.deserialize(BinaryReader reader) {
  // Read [PaymentsStarGiftUpgradeAttributes] fields.
  final attributes = reader.readVectorObject<StarGiftAttributeBase>();

  // Construct [PaymentsStarGiftUpgradeAttributes] object.
  final returnValue = PaymentsStarGiftUpgradeAttributes(
    attributes: attributes.items,
  );

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