// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'productAttr.dart';

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

ProductAttr _$ProductAttrFromJson(Map<String, dynamic> json) {
  return ProductAttr()
    ..product_id = json['product_id'] as num
    ..attr_name = json['attr_name'] as String
    ..attr_values =
        (json['attr_values'] as List)?.map((e) => e as String)?.toList()
    ..type = json['type'] as num
    ..attr_value = (json['attr_value'] as List)
        ?.map((e) =>
            e == null ? null : AttrValue.fromJson(e as Map<String, dynamic>))
        ?.toList();
}

Map<String, dynamic> _$ProductAttrToJson(ProductAttr instance) =>
    <String, dynamic>{
      'product_id': instance.product_id,
      'attr_name': instance.attr_name,
      'attr_values': instance.attr_values,
      'type': instance.type,
      'attr_value': instance.attr_value
    };
