toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final exact = this.exact;
  final prefix = this.prefix;
  final range = this.range;
  final regex = this.regex;
  final suffix = this.suffix;
  return {
    if (exact != null) 'exact': exact,
    if (prefix != null) 'prefix': prefix,
    if (range != null) 'range': range,
    if (regex != null) 'regex': regex,
    if (suffix != null) 'suffix': suffix,
  };
}