-
Notifications
You must be signed in to change notification settings - Fork 273
/
session.dart
210 lines (200 loc) · 8.41 KB
/
session.dart
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
class SessionsData {
List<Session> sessions;
SessionsData({this.sessions});
SessionsData.fromJson(Map<String, dynamic> json) {
if (json['sessions'] != null) {
sessions = new List<Session>();
json['sessions'].forEach((v) {
sessions.add(Session.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.sessions != null) {
data['sessions'] = this.sessions.map((v) => v.toJson()).toList();
}
return data;
}
}
class Session {
String sessionId;
String sessionTitle;
String sessionDesc;
String sessionImage;
String sessionStartTime;
String sessionTotalTime;
String sessionLink;
String speakerName;
String speakerDesc;
String speakerImage;
String speakerInfo;
String speakerId;
String track;
Session({
this.sessionId,
this.sessionTitle,
this.sessionDesc,
this.sessionImage,
this.sessionStartTime,
this.sessionTotalTime,
this.sessionLink,
this.speakerName,
this.speakerDesc,
this.speakerImage,
this.speakerInfo,
this.speakerId,
this.track,
});
Session.fromJson(Map<String, dynamic> json) {
sessionId = json['session_id'];
sessionTitle = json['session_title'];
sessionDesc = json['session_desc'];
sessionImage = json['session_image'];
sessionStartTime = json['session_start_time'];
sessionTotalTime = json['session_total_time'];
sessionLink = json['session_link'];
speakerName = json['speaker_name'];
speakerDesc = json['speaker_desc'];
speakerImage = json['speaker_image'];
speakerInfo = json['speaker_info'];
speakerId = json['speaker_id'];
track = json['track'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['session_id'] = this.sessionId;
data['session_title'] = this.sessionTitle;
data['session_desc'] = this.sessionDesc;
data['session_image'] = this.sessionImage;
data['session_start_time'] = this.sessionStartTime;
data['session_total_time'] = this.sessionTotalTime;
data['session_link'] = this.sessionLink;
data['speaker_name'] = this.speakerName;
data['speaker_desc'] = this.speakerDesc;
data['speaker_image'] = this.speakerImage;
data['speaker_info'] = this.speakerInfo;
data['speaker_id'] = this.speakerId;
data['track'] = this.track;
return data;
}
}
//* Sessions hardcoded data
final desc = "The async/await feature allows you to write the asynchronous code in a straightforward way," +
"without a long list of callbacks. Used in C# for quite a while already, it has proven to be extremely useful.In Kotlin you have async and await as library functions implemented using coroutines." +
"A coroutine is a light-weight thread that can be suspended and resumed later." +
"Very precise definition, but might be confusing at first. What 'light-weight thread' means?" +
"How does suspension work? This talk uncovers the magic. We'll discuss the concept of coroutines," +
"the power of async/await, and how you can benefit from defining your asynchronous computations using suspend function." +
" The content of this video was not produced or created by Google.";
//* Tracks can be mobile, web and cloud (Make it web by default or if the track type is not clear.)
List<Session> sessions = [
Session(
sessionId: "1",
sessionStartTime: "9:00 AM",
sessionTotalTime: "30 Mins",
sessionTitle: "DevByte: From Zero to ML on Google Cloud Platform",
sessionDesc: desc,
speakerImage:
"https://avatars1.githubusercontent.com/u/12619420?s=400&u=eac38b075e4e4463edfb0f0a8972825cf7803d4c&v=4",
speakerName: "Max Saltonstall",
speakerDesc: "Cloud Developer Advocate, Google DevByte speaker",
track: "cloud",
),
Session(
sessionId: "2",
sessionStartTime: "9:30 AM",
sessionTotalTime: "30 Mins",
sessionTitle: "How I Became a Mobile Developer with Firebase and Flutter",
sessionDesc: desc,
speakerImage:
"https://devfest.withgoogle.com/api/assets?path=/gs/gweb-gc-gather-production.appspot.com/files/L2FwcGhvc3RpbmdfZ2xvYmFsL2Jsb2JzL0FFbkIyVW9DRktRcllTZDN1T2VINnhiUC11M2pVUFZFLVI0dVh5czF6d2lKNGRwanJjVjJhWm1zSUJZelVkZzBRaG9uRkNJZmhVZEg3ZGpVV0RhRmpQWXFYeHU0Y1ZDRmROb3FQYnVBQ2VKMWdOSFRHS3B0YWxRLk8xa3k2cVpFOG15UFAyRnk",
speakerName: "Laura Morinigo",
speakerDesc: "Software Developer, DMod Labs",
track: "mobile",
),
Session(
sessionId: "3",
sessionStartTime: "10:30 AM",
sessionTotalTime: "30 Mins",
sessionTitle: "Angular Elements",
sessionDesc: desc,
speakerImage:
"https://devfest.withgoogle.com/api/assets?path=/gs/gweb-gc-gather-production.appspot.com/files/L2FwcGhvc3RpbmdfZ2xvYmFsL2Jsb2JzL0FFbkIyVXJET043VnFRT2R1UHdyS1lFUElwLVNaYlVVbnc1enJuNTNGbUtQQjR0SF9STVUzMVptdkgzclRpRjhTUDc2WUNvNldKNFVacFhiXzF4bUoxTVc0RzlfXzF3d2tPUXl4NTNSNjBNSzRoaXB1VVBxOTRFLk0yOHMwWm1NeURjaWxQZ1k",
speakerName: "Jimenez Raul",
speakerDesc: "Software Engineer, Byte Default",
track: "web",
),
Session(
sessionId: "4",
sessionStartTime: "11:00 AM",
sessionTotalTime: "45 Mins",
sessionTitle: "Machine Learning and AutoML on GCP",
sessionDesc: desc,
speakerImage:
"https://devfest.withgoogle.com/api/assets?path=/gs/gweb-gc-gather-production.appspot.com/files/AEnB2UozlnKuWKqwaGjT2U6ylLLyMtoByOnx-ctrRmn5A8kptjCS50E8EgQDSuxYg8chsldOmSLbHScKX0ERlngHvbRp5XVRyNuAUSIm_Hguq3THTisLLaU.UyKUL3gyFQsEAcmO",
speakerName: "Sathish V J",
speakerDesc: "Tech Architect, Investor, Tutor",
track: "cloud",
),
Session(
sessionId: "5",
sessionStartTime: "1:00 PM",
sessionTotalTime: "45 Mins",
sessionTitle: "Top 5 from Firebase Summit '18",
sessionDesc: desc,
speakerImage:
"https://devfest.withgoogle.com/api/assets?path=/gs/gweb-gc-gather-production.appspot.com/files/AEnB2UqZAYU9q0R5K2cq94DxU7ebiOMhilDlx5NzzsWWZ_oHxqcZV8H8j594rg_q_vyfTToA0BfScTHOHAj8uKf2OeF5MVqa_jmdjC9JO9-2TcPWjboxPf8.NN-XmkQxmHl1XyY_",
speakerName: "Timothy Jordan",
speakerDesc: "Sr. Staff Developer Advocate, Google",
track: "web",
),
Session(
sessionId: "6",
sessionStartTime: "2:00 PM",
sessionTotalTime: "45 Mins",
sessionTitle: "Multiplayer Games with WebXR",
sessionDesc: desc,
speakerImage:
"https://devfest.withgoogle.com/api/assets?path=/gs/gweb-gc-gather-production.appspot.com/files/L2FwcGhvc3RpbmdfZ2xvYmFsL2Jsb2JzL0FFbkIyVXJ2Zkg0YUY1ZFJoMFFRbWlqdFE4MV9nNTdJR0dxUS1ubVJfbkN2Y1RaS3VoaUp2dWd3ejNmUmJRekFQaU5QNGhqd1F6cUtKQXpYeXJkemVyS2hUY1NzSWloMXFCNzQzdmpRVVVmU0Z4XzJZRDVZQXVBLnFHVllKVmc2MUVzQVZ5bVI",
speakerName: "Tanay Pant",
speakerDesc: "Web Developer Advocate, Mozilla Foundation",
track: "web",
),
Session(
sessionId: "7",
sessionStartTime: "3:00 PM",
sessionTotalTime: "45 Mins",
sessionTitle: "Mobile Database Persistence",
sessionDesc: desc,
speakerImage:
"https://devfest.withgoogle.com/api/assets?path=/gs/gweb-gc-gather-production.appspot.com/files/AEnB2UqEG002BsGCqZLZRFUGu9xo4IpGamz6gTqlWxWyME0s-n8gR7Rs0tM5R6mPMOCRYf5rAunWx0GQeXDUHPag_XWGApdekw.cks8tPlPy-TeucOT",
speakerName: "Eric Maxwell",
speakerDesc: "Software Developer, Big Nerd Ranch",
track: "mobile",
),
Session(
sessionId: "8",
sessionStartTime: "4:00 PM",
sessionTotalTime: "45 Mins",
sessionTitle: "Progressive Experience Web Development",
sessionDesc: desc,
speakerImage:
"https://devfest.withgoogle.com/api/assets?path=/gs/gweb-gc-gather-production.appspot.com/files/L2FwcGhvc3RpbmdfZ2xvYmFsL2Jsb2JzL0FFbkIyVXBET0RKT0JBV195UjVuSDRKS3JEenphN2gzLW80WEdvenlGdkZhNGREUzFmQUk1RjJnR0N5eEJIdlBkOVhlLUdwalVSWXlxbXJ4VFA0QXRZdnB4WDllWFNpdmdiNy14Q0tLOENCeU41Yks4NF9vUVQ0LlVFY0RBeld0ZTd4OEtSUTg",
speakerName: "Yohan Totting",
speakerDesc: "Web Developer Advocate, Google",
track: "web",
),
Session(
sessionId: "9",
sessionStartTime: "5:00 PM",
sessionTotalTime: "45 Mins",
sessionTitle: "Kotlin Coroutines",
sessionDesc: desc,
speakerImage:
"https://devfest.withgoogle.com/api/assets?path=/gs/gweb-gc-gather-production.appspot.com/files/L2FwcGhvc3RpbmdfZ2xvYmFsL2Jsb2JzL0FFbkIyVW9XdVlxYUljN0RsYm1kejJaZFpkNENVMm1aTWhxU3VhNEtTVEoza3lBYVpDdGJsei1tSFB2ajNDc2FuZEdBbmNOMGlPZGtWRkJicHR6S1R0UVYxc1V2bXk0TWlBbnItWG00a3ZZc0laZ3VmVkg4NU5vLm1jNWdnX1pEZV8yT2FDalM",
speakerName: "Svetlana Isakova",
speakerDesc: "Developer Advocate, Jetbrain",
track: "mobile",
),
];