fromJson method

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

Implementation

@override
UMemberRole fromJson(String json) {
  final knownValue = KnownMemberRole.valueOf(json);

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