toMap method
Implementation
Map<String, dynamic> toMap() => {
"id": id,
"amount": amount,
"order_count": orderCount,
"active_from": activeFrom?.toIso8601String(),
"active_till": activeTill?.toIso8601String(),
"created_at": createdAt?.toIso8601String(),
};