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