Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (decimal != null) { json[r'decimal'] = decimal; } if (duration != null) { json[r'duration'] = duration; } return json; }