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