toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      _JsonFields.totals:
          totals.map((key, value) => MapEntry(key.name, value.toString())),
      _JsonFields.time: time.millisecondsSinceEpoch,
    };