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
30
31
32
|
class PopularVideo {
String? name;
String? key;
String? site;
int? size;
String? type;
bool? official;
String? id;
PopularVideo({
this.name,
this.key,
this.site,
this.size,
this.type,
this.official,
this.id,
});
factory PopularVideo.fromMap(Map<String, dynamic> map) {
print(map.toString());
return PopularVideo(
id: map['id'],
key: map['key'],
name: map['name'],
site: map['site'],
size: map['size'],
type: map['type'],
official: map['official'],
);
}
}
|