encode method

Object encode()

Implementation

Object encode() {
  return <Object?>[
    code,
    name,
    type,
    basePrice,
    discountValue,
    discountValueLabel,
    startDate,
    endDate,
  ];
}