toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (from != null) {
json[r'from'] = from;
}
if (to != null) {
json[r'to'] = to;
}
json[r'ingredients'] = ingredients;
json[r'pharmaceuticalForms'] = pharmaceuticalForms;
json[r'routeOfAdministrations'] = routeOfAdministrations;
if (dividable != null) {
json[r'dividable'] = dividable;
}
if (scored != null) {
json[r'scored'] = scored;
}
if (crushable != null) {
json[r'crushable'] = crushable;
}
if (containsAlcohol != null) {
json[r'containsAlcohol'] = containsAlcohol;
}
if (sugarFree != null) {
json[r'sugarFree'] = sugarFree;
}
if (modifiedReleaseType != null) {
json[r'modifiedReleaseType'] = modifiedReleaseType;
}
if (specificDrugDevice != null) {
json[r'specificDrugDevice'] = specificDrugDevice;
}
if (dimensions != null) {
json[r'dimensions'] = dimensions;
}
if (name != null) {
json[r'name'] = name;
}
if (note != null) {
json[r'note'] = note;
}
return json;
}