fromJson method

  1. @override
ULabelValue fromJson(
  1. String json
)

Implementation

@override
ULabelValue fromJson(String json) {
  final knownValue = KnownLabelValue.valueOf(json);

  return knownValue != null
      ? ULabelValue.knownValue(data: knownValue)
      : ULabelValue.unknownValue(data: json);
}