toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final invert = this.invert;
  final match = this.match;
  return {
    'name': name,
    if (invert != null) 'invert': invert,
    if (match != null) 'match': match,
  };
}