DataFormat class

Specifies the format of the data in a DataPoint.

Note that the only reason why we have both a DataType and a DataFormat class definition is because the JSON serialization is different in data upload versus download from CANS.... :-? Upload is FieldRename.snake while download is FieldRename.none.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)

Constructors

DataFormat(String namespace, String name)
Create a DataFormat.
const
DataFormat.fromJson(Map<String, dynamic> json)
factory
DataFormat.fromString(String type)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of this data format. See String.
final
namespace String
The data type namespace. See NameSpace.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

UNKNOWN → const DataFormat