class PositionTitle { PositionTitle({ this.id, this.title, }); final int? id; final String? title; factory PositionTitle.fromJson(Map json) => PositionTitle( id: json["id"], title: json["title"], ); Map toJson() => { "id": id, "title": title, }; }