// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_product_detail_res_model.dart';

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

GetProductDetailResModel _$GetProductDetailResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductDetailResModel(
      GetProductDetailResultResModel.fromJson(json['result']),
    );

GetProductDetailResultResModel _$GetProductDetailResultResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductDetailResultResModel(
      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?,

      store: json['store'] == null
          ? null
          : GetProductDetailStoreResModel.fromJson(json['store']),
      images: (json['images'] as List<dynamic>?)
          ?.map((e) => GetProductImagesResModel.fromJson(e))
          .toList(),
      category: (json['category'] as List<dynamic>?)
          ?.map((e) => GetProductDetailCategoryResModel.fromJson(e))
          .toList(),
      intellectual_type: json['intellectual_type'] == null
          ? null
          : GetProductDetailIntellectureTypeResModel.fromJson(
              json['intellectual_type']),
      contractType: json['contract_type'] as String?,
      relate_data: (json['relate_data'] as List<dynamic>?)
              ?.map((e) => GetProductDetailRelateDataResModel.fromJson(e))
              .toList() ??
          [],
          // detailDipRegisInfoResModel: (json['dip_regis_info'] as List<dynamic>?)
          //     ?.map((e) => GetProductDetailDipRegisInfoResModel.fromJson(e))
          //     .toList(),
    );

GetProductDetailStoreResModel _$GetProductDetailStoreResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductDetailStoreResModel(
      json['email'] as String?,
      json['phone'] as String?,
      json['id'] as int,
    );

// GetProductDetailDipRegisInfoResModel _$GetProductDetailDipRegisInfoResModelFromJson(
//
//     Map<String, dynamic> json) =>
//     GetProductDetailDipRegisInfoResModel(
//       json['request_number'] as String?,
//       json['request_date'] as String?,
//       json['expire_date'] as String?,
//       json['name'] as String?,
//       json['request_name'] as String?,
//       json['address_of_request_name'] as String?,
//       json['certificate_number'] as String?,
//       json['certificate_date'] as String?,
//
//     );
GetProductDetailCategoryResModel _$GetProductDetailCategoryResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductDetailCategoryResModel(
      json['id'] as int,
      json['parentId'] as String?,
      json['name'] as String?,
      json['code'] as String?,
      json['link'] as String?,
      json['detail'] as String?,
      json['type'] as String?,
      json['status'] as String?,
      json['sortOrder'] as int?,
      json['group'] as int?,
      json['level'] as int?,
      json['createdAt'] as String?,
      json['updatedAt'] as String?,
      json['cover'] as String?,
    );

GetProductDetailIntellectureTypeResModel
    _$GetProductDetailIntellectureTypeResModelFromJson(
            Map<String, dynamic> json) =>
        GetProductDetailIntellectureTypeResModel(
          json['id'] as int,
          json['code'] as String?,
          json['name'] as String?,
          json['detail'] as String?,
          json['value'] as String?,
          json['link'] as String?,
          json['target'] as String?,
          json['icon'] as String?,
          json['image'] as String?,
          json['class'] as String?,
          json['level'] as String?,
          json['group'] as String?,
          json['category'] as String?,
          json['scope'] as String?,
          json['status'] as String?,
          json['refSubId'] as String?,
          json['refMainId'] as String?,
          json['createdAt'] as String?,
          json['updatedAt'] as String?,
          json['tbName'] as String?,
          json['tbId'] as String?,
        );

GetProductDetailRelateDataResModel _$GetProductDetailRelateDataResModelFromJson(
        Map<String, dynamic> json) =>
    GetProductDetailRelateDataResModel(
      json['id'] as int,
      json['url_code'] as String?,
      json['name'] as String?,
      json['cover'] as String?,
    );
