fromJson method

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

Implementation

@override
UAccountStatus fromJson(String json) {
  final knownValue = KnownAccountStatus.valueOf(json);

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