sportItem.dart 307 B

123456789101112131415
  1. class SportItem {
  2. String? imgUrl;
  3. SportItem({this.imgUrl});
  4. SportItem.fromJson(Map<String, dynamic> json) {
  5. imgUrl = json['imgUrl'];
  6. }
  7. Map<String, dynamic> toJson() {
  8. final Map<String, dynamic> data = new Map<String, dynamic>();
  9. data['imgUrl'] = this.imgUrl;
  10. return data;
  11. }
  12. }