// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'campaign_7day_info_model.dart';

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

Campaign7DayInfoModel _$Campaign7DayInfoModelFromJson(
  Map<String, dynamic> json,
) => Campaign7DayInfoModel(
  id: (json['id'] as num).toInt(),
  description: json['description'] as String?,
  icon: json['icon'] as String?,
  startTime: json['start_time'] as String?,
  endTime: json['end_time'] as String?,
  missions:
      (json['missions'] as List<dynamic>?)
          ?.map(
            (e) => Campaign7DayMissionModel.fromJson(e as Map<String, dynamic>),
          )
          .toList(),
  name: json['name'] as String?,
  config:
      json['config'] == null
          ? null
          : Campaign7dayConfigModel.fromJson(
            json['config'] as Map<String, dynamic>,
          ),
);

Map<String, dynamic> _$Campaign7DayInfoModelToJson(
  Campaign7DayInfoModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'description': instance.description,
  'icon': instance.icon,
  'start_time': instance.startTime,
  'end_time': instance.endTime,
  'missions': instance.missions,
  'name': instance.name,
  'config': instance.config,
};
