// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'health_book_model.dart';

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

HealthBookCardItemModel _$HealthBookCardItemModelFromJson(
  Map<String, dynamic> json,
) => HealthBookCardItemModel(
  itemId: (json['item_id'] as num?)?.toInt(),
  cardName: json['card_name'] as String?,
  fullName: json['full_name'] as String?,
  cardCode: json['card_code'] as String?,
  expireDate: json['expire_date'] as String?,
  phoneNumber: json['phone_number'] as String?,
  updatedAt: json['updated_at'] as String?,
  countCheckupUnused: (json['count_checkup_unused'] as num?)?.toInt(),
  bottomButton:
      json['bottom_button'] == null
          ? null
          : ButtonConfigModel.fromJson(
            json['bottom_button'] as Map<String, dynamic>,
          ),
  media:
      (json['media'] as List<dynamic>?)
          ?.map((e) => ProductMediaItem.fromJson(e as Map<String, dynamic>))
          .toList(),
  buyMoreNote:
      json['buy_more_note'] == null
          ? null
          : ButtonConfigModel.fromJson(
            json['buy_more_note'] as Map<String, dynamic>,
          ),
  active:
      json['active'] == null
          ? null
          : ActiveTextConfig.fromJson(json['active'] as Map<String, dynamic>),
);

Map<String, dynamic> _$HealthBookCardItemModelToJson(
  HealthBookCardItemModel instance,
) => <String, dynamic>{
  'item_id': instance.itemId,
  'card_name': instance.cardName,
  'full_name': instance.fullName,
  'card_code': instance.cardCode,
  'expire_date': instance.expireDate,
  'phone_number': instance.phoneNumber,
  'updated_at': instance.updatedAt,
  'count_checkup_unused': instance.countCheckupUnused,
  'bottom_button': instance.bottomButton?.toJson(),
  'media': instance.media?.map((e) => e.toJson()).toList(),
  'buy_more_note': instance.buyMoreNote?.toJson(),
  'active': instance.active?.toJson(),
};
