// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'notification_data.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_NotificationData _$NotificationDataFromJson(Map<String, dynamic> json) =>
    _NotificationData(
      notifications:
          (json['notifications'] as List<dynamic>?)
              ?.map((e) => NotificationItem.fromJson(e as Map<String, dynamic>))
              .toList(),
      meta:
          json['meta'] == null
              ? null
              : Meta.fromJson(json['meta'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$NotificationDataToJson(_NotificationData instance) =>
    <String, dynamic>{
      'notifications': instance.notifications,
      'meta': instance.meta,
    };

_NotificationItem _$NotificationItemFromJson(Map<String, dynamic> json) =>
    _NotificationItem(
      id: json['id'] as String?,
      userId: json['user_id'] as String?,
      title: json['title'] as String?,
      message: json['message'] as String?,
      link: json['link'] as String?,
      image: json['image'] as String?,
      priority: json['priority'] as String?,
      type: json['type'] as String?,
      eventType: json['event_type'] as String?,
      status: json['status'] as String?,
      methods: json['methods'] as Map<String, dynamic>?,
      metadata: json['metadata'] as Map<String, dynamic>?,
      scheduleAt: (json['schedule_at'] as num?)?.toInt(),
      createdAt: json['created_at'] as String?,
      updatedAt: json['updated_at'] as String?,
      seen: json['seen'] as bool?,
      seenAt: (json['seen_at'] as num?)?.toInt(),
      isScheduled: json['is_scheduled'] as bool?,
      scheduledAt: (json['scheduled_at'] as num?)?.toInt(),
    );

Map<String, dynamic> _$NotificationItemToJson(_NotificationItem instance) =>
    <String, dynamic>{
      'id': instance.id,
      'user_id': instance.userId,
      'title': instance.title,
      'message': instance.message,
      'link': instance.link,
      'image': instance.image,
      'priority': instance.priority,
      'type': instance.type,
      'event_type': instance.eventType,
      'status': instance.status,
      'methods': instance.methods,
      'metadata': instance.metadata,
      'schedule_at': instance.scheduleAt,
      'created_at': instance.createdAt,
      'updated_at': instance.updatedAt,
      'seen': instance.seen,
      'seen_at': instance.seenAt,
      'is_scheduled': instance.isScheduled,
      'scheduled_at': instance.scheduledAt,
    };
