toJson method

Map<String, dynamic> toJson()

Implementation

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