// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'product_network_data_model.dart';

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

ProductNetworkDataModel _$ProductNetworkDataModelFromJson(
  Map<String, dynamic> json,
) => ProductNetworkDataModel(
  id: (json['id'] as num?)?.toInt(),
  productModelCode: json['product_model_code'] as String?,
  code: json['code'] as String?,
  name: json['name'] as String?,
  dataDurationApply: json['data_duration_apply'] as String?,
  productDescription: json['description'] as String?,
  startTime: json['start_time'] as String?,
  endTime: json['end_time'] as String?,
  prices:
      (json['prices'] as List<dynamic>?)
          ?.map((e) => MobileCardPriceModel.fromJson(e as Map<String, dynamic>))
          .toList(),
);

Map<String, dynamic> _$ProductNetworkDataModelToJson(
  ProductNetworkDataModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'product_model_code': instance.productModelCode,
  'code': instance.code,
  'name': instance.name,
  'data_duration_apply': instance.dataDurationApply,
  'description': instance.productDescription,
  'start_time': instance.startTime,
  'end_time': instance.endTime,
  'prices': instance.prices,
};

TopUpNetworkDataModel _$TopUpNetworkDataModelFromJson(
  Map<String, dynamic> json,
) => TopUpNetworkDataModel(
  groupName: json['group_name'] as String,
  products:
      (json['products'] as List<dynamic>?)
          ?.map(
            (e) => ProductNetworkDataModel.fromJson(e as Map<String, dynamic>),
          )
          .toList(),
);

Map<String, dynamic> _$TopUpNetworkDataModelToJson(
  TopUpNetworkDataModel instance,
) => <String, dynamic>{
  'group_name': instance.groupName,
  'products': instance.products,
};
