IndexDatapoint_NumericRestriction.fromJson constructor
IndexDatapoint_NumericRestriction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory IndexDatapoint_NumericRestriction.fromJson(
Map<String, dynamic> json,
) {
return IndexDatapoint_NumericRestriction(
valueInt: decodeInt64(json['valueInt']),
valueFloat: decodeDouble(json['valueFloat']),
valueDouble: decodeDouble(json['valueDouble']),
namespace: json['namespace'] ?? '',
op:
decodeEnum(
json['op'],
IndexDatapoint_NumericRestriction_Operator.fromJson,
) ??
IndexDatapoint_NumericRestriction_Operator.$default,
);
}