@override Map<String, Object?> toJson() => { "type": encodeValue(type), "discount": encodeValue(discount), };