// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_product_list_res_model.dart';

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

GetProductListResModel _$GetProductListResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductListResModel(
      GetProductListResultResModel.fromJson(json['result']),
    );

GetProductListResultResModel _$GetProductListResultResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductListResultResModel(
      (json['data'] as List<dynamic>)
          .map((e) => GetProductListItemResModel.fromJson(e))
          .toList(),
    );

GetProductListItemResModel _$GetProductListItemResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductListItemResModel(
      id: json['id'] as int?,
      urlCode: json['url_code'] as String?,
      name: json['name'] as String?,
      cover: json['cover'] as String?,
      excerpt: json['excerpt'] as String?,
      detail: json['detail'] as String?,
      price: json['price'] as String?,
      specialPrice: json['special_price'],
      sku: json['sku'] as String?,
      tax: (json['tax'] as num?)?.toDouble(),
      quantity: json['quantity'] as int?,
      size: (json['size'] as num?)?.toDouble(),
      visibility: json['visibility'] as String?,
      newsFromDate: json['news_from_date'] as String?,
      newsToDate: json['news_to_date'] as String?,
      layout: json['layout'] as String?,
      theme: json['theme'] as String?,
      duration: json['duration'] as String?,
      sellingStartTime: json['selling_start_time'] as String?,
      sellingEndTime: json['selling_end_time'] as String?,
      redemptionStartTime: json['redemption_start_time'] as String?,
      redemptionEndTime: json['redemption_end_time'] as String?,
      availibility: json['availibility'] as String?,
      isFeatured: json['is_featured'] as String?,
      isDeal: json['is_deal'] as String?,
      reviewStatus: json['review_status'] as String?,
      relatedStatus: json['related_status'] as String?,
      upSellsStatus: json['up_sells_status'] as String?,
      crossSellsStatus: json['cross_sells_status'] as String?,
      allowGiftMessage: json['allow_gift_message'] as String?,
      stockStatus: json['stock_status'] as String?,
      status: json['status'] as String?,
      dimension: (json['dimension'] as num?)?.toDouble(),
      groupId: json['groupId'] as int?,
      tags: json['tags'] as String?,
      attributeSet: json['attribute_set'] as String?,
      vendorId: json['vendor_id'] as int?,
      allowRoute: json['allow_route'] as String?,
      type: json['type'] as String?,
      createdAt: json['created_at'] as String?,
      updatedAt: json['update_at'] as String?,
      createdDate: json['created_dete'] as String?,
      updatedDate: json['updated_date'] as String?,
      createBy: json['create_by'] as int?,
      updatedBy: json['updated_by'] as String?,
      groupData: json['group_data'] as String?,
      address: json['address'] as String?,
      industryGroup: json['industry_group'] as String?,
      objectiveSale: json['objective_sale'] as String?,
      storeId: json['store_id'] as int?,
      location: json['location'] as String?,
      target: json['target'] as String?,
      // dipRegisInfo: json['dip_regis_info'] as String?,
      images: (json['images'] as List<dynamic>?)
          ?.map((e) => GetProductImagesResModel.fromJson(e))
          .toList(),
    );

GetProductImagesResModel _$GetProductImagesResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductImagesResModel(
      json['target_link'] as String,
    );
