Notification.fromJson constructor

Notification.fromJson(
  1. Map json_
)

Implementation

Notification.fromJson(core.Map json_)
    : this(
        appRestrictionsSchemaChangeEvent:
            json_.containsKey('appRestrictionsSchemaChangeEvent')
                ? AppRestrictionsSchemaChangeEvent.fromJson(
                    json_['appRestrictionsSchemaChangeEvent']
                        as core.Map<core.String, core.dynamic>)
                : null,
        appUpdateEvent: json_.containsKey('appUpdateEvent')
            ? AppUpdateEvent.fromJson(json_['appUpdateEvent']
                as core.Map<core.String, core.dynamic>)
            : null,
        deviceReportUpdateEvent: json_.containsKey('deviceReportUpdateEvent')
            ? DeviceReportUpdateEvent.fromJson(
                json_['deviceReportUpdateEvent']
                    as core.Map<core.String, core.dynamic>)
            : null,
        enterpriseId: json_.containsKey('enterpriseId')
            ? json_['enterpriseId'] as core.String
            : null,
        installFailureEvent: json_.containsKey('installFailureEvent')
            ? InstallFailureEvent.fromJson(json_['installFailureEvent']
                as core.Map<core.String, core.dynamic>)
            : null,
        newDeviceEvent: json_.containsKey('newDeviceEvent')
            ? NewDeviceEvent.fromJson(json_['newDeviceEvent']
                as core.Map<core.String, core.dynamic>)
            : null,
        newPermissionsEvent: json_.containsKey('newPermissionsEvent')
            ? NewPermissionsEvent.fromJson(json_['newPermissionsEvent']
                as core.Map<core.String, core.dynamic>)
            : null,
        notificationType: json_.containsKey('notificationType')
            ? json_['notificationType'] as core.String
            : null,
        productApprovalEvent: json_.containsKey('productApprovalEvent')
            ? ProductApprovalEvent.fromJson(json_['productApprovalEvent']
                as core.Map<core.String, core.dynamic>)
            : null,
        productAvailabilityChangeEvent:
            json_.containsKey('productAvailabilityChangeEvent')
                ? ProductAvailabilityChangeEvent.fromJson(
                    json_['productAvailabilityChangeEvent']
                        as core.Map<core.String, core.dynamic>)
                : null,
        timestampMillis: json_.containsKey('timestampMillis')
            ? json_['timestampMillis'] as core.String
            : null,
      );