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.penaltyAmount != null) {
json[r'penaltyAmount'] = this.penaltyAmount;
} else {
json[r'penaltyAmount'] = null;
}
return json;
}