fromJson method

Implementation

@override
NotificationDeclarationAllowSubscriptions fromJson(String json) {
  try {
    final knownValue = KnownNotificationDeclarationAllowSubscriptions.valueOf(
      json,
    );
    if (knownValue != null) {
      return NotificationDeclarationAllowSubscriptions.knownValue(
        data: knownValue,
      );
    }

    return NotificationDeclarationAllowSubscriptions.unknown(data: json);
  } catch (_) {
    return NotificationDeclarationAllowSubscriptions.unknown(data: json);
  }
}