fromJson method

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

Implementation

@override
URepoOpAction fromJson(String json) {
  final knownValue = KnownRepoOpAction.valueOf(json);

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