IndexDatapoint_NumericRestriction.fromJson constructor
IndexDatapoint_NumericRestriction.fromJson(
- Object? j
Implementation
factory IndexDatapoint_NumericRestriction.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return IndexDatapoint_NumericRestriction(
valueInt: switch (json['valueInt']) {
null => null,
Object $1 => decodeInt64($1),
},
valueFloat: switch (json['valueFloat']) {
null => null,
Object $1 => decodeDouble($1),
},
valueDouble: switch (json['valueDouble']) {
null => null,
Object $1 => decodeDouble($1),
},
namespace: switch (json['namespace']) {
null => '',
Object $1 => decodeString($1),
},
op: switch (json['op']) {
null => IndexDatapoint_NumericRestriction_Operator.$default,
Object $1 => IndexDatapoint_NumericRestriction_Operator.fromJson($1),
},
);
}