toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final is$ = this.is$;
  final key = this.key;
  final pattern = this.pattern;
  return {
    if (is$ != null) 'is': is$,
    if (key != null) 'key': key,
    'kind': kind,
    if (pattern != null) 'pattern': pattern,
  };
}