fromJson static method
Returns a new ComplexValueBase instance and imports its values from
value if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static ComplexValueBase fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return ComplexValueBase(
unit: mapValueOfType<String>(json, r'Unit'),
dataType: ComplexValueBaseDataTypeEnum.fromJson(json[r'DataType']),
);
}
return null;
}