toJson method

Map<String, dynamic> toJson()

Implementation

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