decode static method
Implementation
static UNNotificationSettings decode(Object result) {
result as List<Object?>;
return UNNotificationSettings(
authorizationStatus: result[0] != null
? UNAuthorizationStatus.values[result[0]! as int]
: null,
soundSetting: result[1] != null
? UNNotificationSetting.values[result[1]! as int]
: null,
badgeSetting: result[2] != null
? UNNotificationSetting.values[result[2]! as int]
: null,
alertSetting: result[3] != null
? UNNotificationSetting.values[result[3]! as int]
: null,
notificationCenterSetting: result[4] != null
? UNNotificationSetting.values[result[4]! as int]
: null,
lockScreenSetting: result[5] != null
? UNNotificationSetting.values[result[5]! as int]
: null,
carPlaySetting: result[6] != null
? UNNotificationSetting.values[result[6]! as int]
: null,
alertStyle: result[7] != null
? UNAlertStyle.values[result[7]! as int]
: null,
showPreviewsSetting: result[8] != null
? UNShowPreviewsSetting.values[result[8]! as int]
: null,
criticalAlertSetting: result[9] != null
? UNNotificationSetting.values[result[9]! as int]
: null,
providesAppNotificationSettings: result[10] as bool?,
announcementSetting: result[11] != null
? UNNotificationSetting.values[result[11]! as int]
: null,
);
}