toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var description = this.description;
  var name = this.name;
  var searcherKey = this.searcherKey;

  final json = <String, Object?>{};
  if (description != null) {
    json[r'description'] = description;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (searcherKey != null) {
    json[r'searcherKey'] = searcherKey.value;
  }
  return json;
}