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