toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
if (properties != null) {
data['properties'] = properties!.map((v) => v.toJson()).toList();
}
data['discount_message'] = discountMessage;
data['discount_method'] = discountMethod;
if (paginate != null) {
data['paginate'] = paginate!.toJson();
}
if (meta != null) {
data['meta'] = meta!.toJson();
}
return data;
}