// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'brand_model.dart';

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

BrandModel _$BrandModelFromJson(Map<String, dynamic> json) => BrandModel(
  organizationId: json['organization_id'] as String?,
  organizationCode: json['organization_code'] as String?,
  organizationName: json['organization_name'] as String?,
  brandId: json['brand_id'] as String?,
  brandCode: json['brand_code'] as String?,
  brandName: json['brand_name'] as String?,
  contactName: json['contact_name'] as String?,
  phone: json['phone'] as String?,
  mobile: json['mobile'] as String?,
  fax: json['fax'] as String?,
  email: json['email'] as String?,
  address1: json['address1'] as String?,
  address2: json['address2'] as String?,
  address3: json['address3'] as String?,
  city: json['city'] as String?,
  country: json['country'] as String?,
  website: json['website'] as String?,
  pointAccumulationRate: json['point_accumulation_rate'] as String?,
  category:
      json['category'] == null
          ? null
          : BrandCategoryModel.fromJson(
            json['category'] as Map<String, dynamic>,
          ),
  logo: json['logo'] as String?,
  images:
      (json['images'] as List<dynamic>?)
          ?.map((e) => ImageModel.fromJson(e as Map<String, dynamic>))
          .toList(),
);

Map<String, dynamic> _$BrandModelToJson(BrandModel instance) =>
    <String, dynamic>{
      'organization_id': instance.organizationId,
      'organization_code': instance.organizationCode,
      'organization_name': instance.organizationName,
      'brand_id': instance.brandId,
      'brand_code': instance.brandCode,
      'brand_name': instance.brandName,
      'contact_name': instance.contactName,
      'phone': instance.phone,
      'mobile': instance.mobile,
      'fax': instance.fax,
      'email': instance.email,
      'address1': instance.address1,
      'address2': instance.address2,
      'address3': instance.address3,
      'city': instance.city,
      'country': instance.country,
      'website': instance.website,
      'point_accumulation_rate': instance.pointAccumulationRate,
      'category': instance.category,
      'logo': instance.logo,
      'images': instance.images,
    };
