toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
final l$target = target;
result$data['target'] = l$target.toJson();
final l$discount = discount;
result$data['discount'] = l$discount.toJson();
if (_$data.containsKey('from')) {
final l$from = from;
result$data['from'] = l$from == null ? null : dateTimeToJson(l$from);
}
if (_$data.containsKey('to')) {
final l$to = to;
result$data['to'] = l$to == null ? null : dateTimeToJson(l$to);
}
return result$data;
}