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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
class AppNavEntity {
static AppNavEntity fromJson(Map<String, dynamic>? json) {
return AppNavEntity.from(json!);
}
String? id;
String? name;
String? title;
String? iconUrl;
String? redirectType;
String? androidRedirectUrl;
String? iosRedirectUrl;
String? bindParams;
String? groupId;
String? behaviorType;
String? dayNumber;
String? startTime;
String? endTime;
String? specificTime;
AppNavEntity(
{this.id,
this.name,
this.title,
this.iconUrl,
this.redirectType,
this.androidRedirectUrl,
this.iosRedirectUrl,
this.bindParams,
this.groupId,
this.behaviorType,
this.dayNumber,
this.startTime,
this.endTime,
this.specificTime});
AppNavEntity.from(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
title = json['title'];
iconUrl = json['icon_url'];
redirectType = json['redirect_type'];
androidRedirectUrl = json['android_redirect_url'];
iosRedirectUrl = json['ios_redirect_url'];
bindParams = json['bind_params'];
groupId = json['group_id'];
behaviorType = json['behavior_type'];
dayNumber = json['day_number'];
startTime = json['start_time'];
endTime = json['end_time'];
specificTime = json['specific_time'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
data['title'] = this.title;
data['icon_url'] = this.iconUrl;
data['redirect_type'] = this.redirectType;
data['android_redirect_url'] = this.androidRedirectUrl;
data['ios_redirect_url'] = this.iosRedirectUrl;
data['bind_params'] = this.bindParams;
data['group_id'] = this.groupId;
data['behavior_type'] = this.behaviorType;
data['day_number'] = this.dayNumber;
data['start_time'] = this.startTime;
data['end_time'] = this.endTime;
data['specific_time'] = this.specificTime;
return data;
}
}