toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (from != null) {
    json[r'from'] = from;
  }
  if (to != null) {
    json[r'to'] = to;
  }
  if (rank != null) {
    json[r'rank'] = rank;
  }
  if (type != null) {
    json[r'type'] = type;
  }
  if (knownEffect != null) {
    json[r'knownEffect'] = knownEffect;
  }
  if (strengthDescription != null) {
    json[r'strengthDescription'] = strengthDescription;
  }
  if (strength != null) {
    json[r'strength'] = strength;
  }
  if (additionalInformation != null) {
    json[r'additionalInformation'] = additionalInformation;
  }
  if (substance != null) {
    json[r'substance'] = substance;
  }
  return json;
}