fromJson method
Implementation
@override
UNotificationReason fromJson(String json) {
final knownValue = KnownNotificationReason.valueOf(json);
return knownValue != null
? UNotificationReason.knownValue(data: knownValue)
: UNotificationReason.unknownValue(data: json);
}