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.
samples/web/github_dataviz/lib/data/contribution_data.dart

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;
}
}