toJson method

  1. @override
Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.

Implementation

@override
Map<String, dynamic> toJson() =>
    {Serializable.CLASS_IDENTIFIER: dataType}..addAll(datapoint.toJson());