fromJson method

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

Implementation

@override
URepoStatus fromJson(String json) {
  final knownValue = KnownRepoStatus.valueOf(json);

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