toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.from != null) {
json[r'from'] = this.from!.toUtc().toIso8601String();
} else {
json[r'from'] = null;
}
if (this.refund != null) {
json[r'refund'] = this.refund;
} else {
json[r'refund'] = null;
}
if (this.penalty != null) {
json[r'penalty'] = this.penalty;
} else {
json[r'penalty'] = null;
}
return json;
}