toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (quantity != null) {
json[r'quantity'] = quantity;
}
if (administrationUnit != null) {
json[r'administrationUnit'] = administrationUnit;
}
if (unit != null) {
json[r'unit'] = unit;
}
return json;
}