fromJson method

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

Implementation

@override
UListPurpose fromJson(String json) {
  final knownValue = KnownListPurpose.valueOf(json);

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