Map<String, Object?> toJson() { var path = this.path; final json = <String, Object?>{}; if (path != null) { json[r'path'] = path; } return json; }