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