toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> jsonMap = {
"id": id,
"title": title,
"description": description,
"codeType": AfterSalesCouponCodeTypeEnumMap[codeType],
"code": code,
"redeemStartDate": redeemStartDate?.toIso8601String(),
"redeemEndDate": redeemEndDate?.toIso8601String(),
};
return jsonMap;
}