AlertStrategy.fromJson constructor

AlertStrategy.fromJson(
  1. Map json_
)

Implementation

AlertStrategy.fromJson(core.Map json_)
  : this(
      autoClose: json_['autoClose'] as core.String?,
      notificationChannelStrategy:
          (json_['notificationChannelStrategy'] as core.List?)
              ?.map(
                (value) => NotificationChannelStrategy.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      notificationPrompts:
          (json_['notificationPrompts'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      notificationRateLimit:
          json_.containsKey('notificationRateLimit')
              ? NotificationRateLimit.fromJson(
                json_['notificationRateLimit']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
    );