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