toJson method
Implementation
Map<String, Object?> toJson() {
var description = this.description;
var name = this.name;
var searcherKey = this.searcherKey;
var type = this.type;
final json = <String, Object?>{};
if (description != null) {
json[r'description'] = description;
}
json[r'name'] = name;
if (searcherKey != null) {
json[r'searcherKey'] = searcherKey.value;
}
json[r'type'] = type;
return json;
}