mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
354 B
15 lines
354 B
class ContributionData {
|
|
int weekTime;
|
|
int add;
|
|
int delete;
|
|
int change;
|
|
|
|
ContributionData(this.weekTime, this.add, this.delete, this.change);
|
|
|
|
static ContributionData fromJson(Map<String, dynamic> jsonMap) {
|
|
ContributionData data = ContributionData(
|
|
jsonMap['w'], jsonMap['a'], jsonMap['d'], jsonMap['c']);
|
|
return data;
|
|
}
|
|
}
|