toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (code != null) {
    json[r'code'] = code;
  }
  if (virtualForm != null) {
    json[r'virtualForm'] = virtualForm;
  }
  json[r'routeOfAdministrations'] = routeOfAdministrations;
  if (name != null) {
    json[r'name'] = name;
  }
  if (phaseNumber != null) {
    json[r'phaseNumber'] = phaseNumber;
  }
  json[r'virtualIngredients'] = virtualIngredients;
  return json;
}