encode static method

Map<String, dynamic> encode(
  1. TimeSeries value
)

Implementation

static Map<String, dynamic> encode(TimeSeries value) {
	Map<String, dynamic> entityAsMap = {
		"fields" : value.fields.map((x0) => x0).toList(),
		"samples" : value.samples.map((x0) => x0.map((x1) => x1).toList()).toList(),
		"min" : value.min.map((x0) => x0).toList(),
		"max" : value.max.map((x0) => x0).toList(),
		"mean" : value.mean.map((x0) => x0).toList(),
		"median" : value.median.map((x0) => x0).toList(),
		"variance" : value.variance.map((x0) => x0).toList()
	};
	return entityAsMap;
}