1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- class Video {
- int id;
- String url;
- String title;
- String time;
- String type;
- String imageUrl;
- Video({
- this.id,
- this.url,
- this.title,
- this.time,
- this.type,
- this.imageUrl,
- });
- Video.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- url = json['url'];
- title = json['title'];
- type = json['type'];
- time = json['time'];
- imageUrl = json['imageUrl'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = this.id;
- data['url'] = this.url;
- data['title'] = this.title;
- data['type'] = this.type;
- data['time'] = this.time;
- data['imageUrl'] = this.imageUrl;
- return data;
- }
- Video.fromSql(Map<String, dynamic> json) {
- id = json['id'];
- url = json['url'];
- title = json['title'];
- type = json['type'];
- time = json['time'];
- imageUrl = json['imageUrl'];
- }
- }
|