File size: 661 Bytes
02ec2cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class SteamTopSeller {
  String? imageSrc;
  String? title;
  String? price;
  String? publishDate;
  String? discount;


  SteamTopSeller(this.imageSrc, this.title, this.price, this.publishDate, this.discount);

  fromJson(Map<String, dynamic> json) {
    this.imageSrc = json['imageSrc'];
    this.title = json['title'];
    this.price = json['price'];
    this.publishDate = json['publishDate'];
    this.discount = json['discount'];
  }

  Map<String, dynamic> toJson() {
    return {
      'imageSrc': this.imageSrc,
      'title': this.title,
      'price': this.price,
      'publishDate': this.publishDate,
      'discount': this.discount,
    };
  }
}