You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
845 B
Dart
29 lines
845 B
Dart
class WelcomeVideoModel {
|
|
int totalItemsCount;
|
|
int statusCode;
|
|
String message;
|
|
String welcomeVideoUrl;
|
|
|
|
WelcomeVideoModel({this.totalItemsCount, this.statusCode, this.message, this.welcomeVideoUrl});
|
|
|
|
WelcomeVideoModel.fromJson(Map<String, dynamic> json) {
|
|
totalItemsCount = json['totalItemsCount'];
|
|
statusCode = json['statusCode'];
|
|
message = json['message'];
|
|
if (json['data'] != null) {
|
|
welcomeVideoUrl = json['data']['welcomevideoUrl'];
|
|
}
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['totalItemsCount'] = this.totalItemsCount;
|
|
data['statusCode'] = this.statusCode;
|
|
data['message'] = this.message;
|
|
if (this.welcomeVideoUrl != null) {
|
|
data['data']['welcomevideoUrl'] = this.welcomeVideoUrl;
|
|
}
|
|
return data;
|
|
}
|
|
}
|