toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var prefix = this.prefix;
  var replace = this.replace;
  var search = this.search;

  final json = <String, Object?>{};
  if (prefix != null) {
    json[r'prefix'] = prefix;
  }
  if (replace != null) {
    json[r'replace'] = replace;
  }
  if (search != null) {
    json[r'search'] = search;
  }
  return json;
}