-
Notifications
You must be signed in to change notification settings - Fork 274
/
team.dart
112 lines (104 loc) · 2.84 KB
/
team.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
class TeamsData {
List<Team> teams;
TeamsData({this.teams});
TeamsData.fromJson(Map<String, dynamic> json) {
if (json['teams'] != null) {
teams = new List<Team>();
json['teams'].forEach((v) {
teams.add(Team.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.teams != null) {
data['teams'] = this.teams.map((v) => v.toJson()).toList();
}
return data;
}
}
class Team {
String name;
String desc;
String job;
String image;
String speciality;
String fbUrl;
String twitterUrl;
String linkedinUrl;
String githubUrl;
String contribution;
Team(
{this.name,
this.desc,
this.job,
this.image,
this.speciality,
this.fbUrl,
this.twitterUrl,
this.linkedinUrl,
this.githubUrl,
this.contribution});
Team.fromJson(Map<String, dynamic> json) {
name = json['name'];
desc = json['desc'];
job = json['job'];
image = json['image'];
speciality = json['speciality'];
fbUrl = json['fb_url'];
twitterUrl = json['twitter_url'];
linkedinUrl = json['linkedin_url'];
githubUrl = json['github_url'];
contribution = json['contribution'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['name'] = this.name;
data['desc'] = this.desc;
data['job'] = this.job;
data['image'] = this.image;
data['speciality'] = this.speciality;
data['fb_url'] = this.fbUrl;
data['twitter_url'] = this.twitterUrl;
data['linkedin_url'] = this.linkedinUrl;
data['github_url'] = this.githubUrl;
data['contribution'] = this.contribution;
return data;
}
}
List<Team> teams = [
Team(
name: "Sundar Pichai",
desc: "Organizer",
contribution: "Google CEO",
image:
"https://pbs.twimg.com/profile_images/864282616597405701/M-FEJMZ0_400x400.jpg",
),
Team(
name: "Vrijraj",
desc: "Co-Organizer",
contribution: "Logistics and travels",
image: "https://avatars2.githubusercontent.com/u/10599101?s=460&v=4",
),
Team(
name: "Larry Page",
desc: "Co-Organizer",
contribution: "Founder",
image:
"https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fimageserve%2F5c76bcaaa7ea43100043c836%2F400x400.jpg%3Ffit%3Dscale%26background%3D000000",
),
Team(
name: "Pawan Kumar",
desc: "Co-Organizer",
contribution: "Developed the app",
image:
"https://avatars1.githubusercontent.com/u/12619420?s=400&u=eac38b075e4e4463edfb0f0a8972825cf7803d4c&v=4",
),
Team(
name: "Pawan Kumar",
desc: "Organizer",
contribution: "Developed the app",
image:
"https://avatars1.githubusercontent.com/u/12619420?s=400&u=eac38b075e4e4463edfb0f0a8972825cf7803d4c&v=4",
),
];