toJson method

Map<String, Object?> toJson()

Implementation

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