class SportItem { String imgUrl; SportItem({this.imgUrl}); SportItem.fromJson(Map json) { imgUrl = json['imgUrl']; } Map toJson() { final Map data = new Map(); data['imgUrl'] = this.imgUrl; return data; } }