fromJson static method
Factory method: parse a JSON representation into a concrete DataType.
Looks up the correct subclass in _dataTypes
.
Implementation
static FloatDataType fromJson(Map<String, dynamic> data) {
if (data['type'] != 'float') {
throw Exception("Expected type 'float', got '${data['type']}'");
}
return FloatDataType();
}