ActivitySummary.fromJson constructor

ActivitySummary.fromJson(
  1. Map<String, dynamic> json
)

General constructor from JSON payload

Implementation

ActivitySummary.fromJson(Map<String, dynamic> json)
    : identifier = json['identifier'],
      date = json['date'].toString().date,
      harmonized = ActivitySummaryHarmonized.fromJson(json['harmonized']);