toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'value': value,
'unit': unit,
'feature': feature,
if (valueRange != null) 'valueRange': valueRange!.toJson(),
if (computedLength != null) 'computedLength': computedLength,
};
}