toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
if (rev != null) {
json[r'rev'] = rev;
}
if (deletionDate != null) {
json[r'deletionDate'] = deletionDate;
}
if (code != null) {
json[r'code'] = code;
}
if (chemicalForm != null) {
json[r'chemicalForm'] = chemicalForm;
}
if (name != null) {
json[r'name'] = name;
}
if (note != null) {
json[r'note'] = note;
}
json[r'standardSubstances'] = standardSubstances;
return json;
}