Value.fromJson constructor

Value.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Value.fromJson(Map<String, dynamic> json) => Value(
      unit: json['unit'] as String?,
      unitUC: json['UNIT'] as String?,
      value: json['value'] == null
          ? null
          : UcumDecimal.fromString(json['value'].toString()),
      text: json['text'] as String?,
    );