fromJson method

Implementation

@override
USearchPostsSkeletonSort fromJson(String json) {
  final knownValue = KnownSearchPostsSkeletonSort.valueOf(json);

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