toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (id != null) {
    json[r'id'] = id;
  }
  if (rev != null) {
    json[r'rev'] = rev;
  }
  if (type != null) {
    json[r'type'] = type;
  }
  if (code != null) {
    json[r'code'] = code;
  }
  if (version != null) {
    json[r'version'] = version;
  }
  json[r'description'] = description;
  json[r'qualifiedLinks'] = qualifiedLinks;
  json[r'searchTerms'] = searchTerms.map((k, v) => MapEntry(k, v.toList()));
  return json;
}