// ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _NotificationPreferencesModel _$NotificationPreferencesModelFromJson( Map json, ) => _NotificationPreferencesModel( scheduleEnabled: json['scheduleEnabled'] as bool? ?? true, clockRemindersEnabled: json['clockRemindersEnabled'] as bool? ?? true, openShiftsEnabled: json['openShiftsEnabled'] as bool? ?? true, chatEnabled: json['chatEnabled'] as bool? ?? true, requestsEnabled: json['requestsEnabled'] as bool? ?? true, swapRequestsEnabled: json['swapRequestsEnabled'] as bool? ?? true, shiftReminderMinutes: (json['shiftReminderMinutes'] as num?)?.toInt() ?? NotificationConstants.defaultShiftReminderMinutes, doNotDisturb: json['doNotDisturb'] as bool? ?? false, quietHoursStart: json['quietHoursStart'] as String?, quietHoursEnd: json['quietHoursEnd'] as String?, ); Map _$NotificationPreferencesModelToJson( _NotificationPreferencesModel instance, ) => { 'scheduleEnabled': instance.scheduleEnabled, 'clockRemindersEnabled': instance.clockRemindersEnabled, 'openShiftsEnabled': instance.openShiftsEnabled, 'chatEnabled': instance.chatEnabled, 'requestsEnabled': instance.requestsEnabled, 'swapRequestsEnabled': instance.swapRequestsEnabled, 'shiftReminderMinutes': instance.shiftReminderMinutes, 'doNotDisturb': instance.doNotDisturb, 'quietHoursStart': instance.quietHoursStart, 'quietHoursEnd': instance.quietHoursEnd, }; _UpdateNotificationPreferencesRequest _$UpdateNotificationPreferencesRequestFromJson(Map json) => _UpdateNotificationPreferencesRequest( scheduleEnabled: json['scheduleEnabled'] as bool?, clockRemindersEnabled: json['clockRemindersEnabled'] as bool?, openShiftsEnabled: json['openShiftsEnabled'] as bool?, chatEnabled: json['chatEnabled'] as bool?, requestsEnabled: json['requestsEnabled'] as bool?, swapRequestsEnabled: json['swapRequestsEnabled'] as bool?, shiftReminderMinutes: (json['shiftReminderMinutes'] as num?)?.toInt(), doNotDisturb: json['doNotDisturb'] as bool?, quietHoursStart: json['quietHoursStart'] as String?, quietHoursEnd: json['quietHoursEnd'] as String?, ); Map _$UpdateNotificationPreferencesRequestToJson( _UpdateNotificationPreferencesRequest instance, ) => { 'scheduleEnabled': instance.scheduleEnabled, 'clockRemindersEnabled': instance.clockRemindersEnabled, 'openShiftsEnabled': instance.openShiftsEnabled, 'chatEnabled': instance.chatEnabled, 'requestsEnabled': instance.requestsEnabled, 'swapRequestsEnabled': instance.swapRequestsEnabled, 'shiftReminderMinutes': instance.shiftReminderMinutes, 'doNotDisturb': instance.doNotDisturb, 'quietHoursStart': instance.quietHoursStart, 'quietHoursEnd': instance.quietHoursEnd, }; _NotificationPreferencesResponse _$NotificationPreferencesResponseFromJson( Map json, ) => _NotificationPreferencesResponse( preferences: NotificationPreferencesModel.fromJson( json['preferences'] as Map, ), ); Map _$NotificationPreferencesResponseToJson( _NotificationPreferencesResponse instance, ) => {'preferences': instance.preferences};