serialize method

  1. @override
Map<String, dynamic> serialize()
override

Serializes the object to a map.

Implementation

@override
Map<String, dynamic> serialize() {
  return {
    "accountType": accountType.value,
    "store": store,
    "authority": authority,
    "description": description,
    "uri": uri,
    "name": name,
    "packCards": packCards,
    "packVouchers": packVouchers,
    "totalWeight": totalWeight,
    "totalEditions": totalEditions,
    "mutable": mutable,
    "packState": packState.value,
    "distributionType": distributionType.value,
    "allowedAmountToRedeem": allowedAmountToRedeem,
    "redeemStartDate": redeemStartDate,
    "redeemEndDate": redeemEndDate,
  };
}