// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'goods_info.dart';

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

GoodsInfo _$GoodsInfoFromJson(Map<String, dynamic> json) => GoodsInfo(
  id: (json['id'] as num).toInt(),
  sort: (json['sort'] as num).toInt(),
  name: json['name'] as String,
  subscribable: (json['subscribable'] as num).toInt(),
  amount: (json['amount'] as num).toInt(),
  originalAmount: (json['originalAmount'] as num).toInt(),
  auth: json['auth'] as String,
  subscriptionMillis: (json['subscriptionMillis'] as num).toInt(),
  priceDesc: json['priceDesc'] as String,
  code: json['code'] as String,
  payOptionIds:
      (json['payOptionIds'] as List<dynamic>?)
          ?.map((e) => (e as num).toInt())
          .toList(),
  description: json['description'] as String?,
  mostDesc: json['mostDesc'] as String?,
  selectDesc: json['selectDesc'] as String?,
  timeLimitDesc: json['timeLimitDesc'] as String?,
);

Map<String, dynamic> _$GoodsInfoToJson(GoodsInfo instance) => <String, dynamic>{
  'id': instance.id,
  'sort': instance.sort,
  'name': instance.name,
  'subscribable': instance.subscribable,
  'amount': instance.amount,
  'originalAmount': instance.originalAmount,
  'auth': instance.auth,
  'subscriptionMillis': instance.subscriptionMillis,
  'priceDesc': instance.priceDesc,
  'payOptionIds': instance.payOptionIds,
  'description': instance.description,
  'mostDesc': instance.mostDesc,
  'selectDesc': instance.selectDesc,
  'timeLimitDesc': instance.timeLimitDesc,
  'code': instance.code,
};
