// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'orders_model.dart';

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

OrderUserInfo _$OrderUserInfoFromJson(Map<String, dynamic> json) =>
    OrderUserInfo(
      json['level'] as String? ?? '0',
    );

Map<String, dynamic> _$OrderUserInfoToJson(OrderUserInfo instance) =>
    <String, dynamic>{
      'level': instance.level,
    };

OrdersReport _$OrdersReportFromJson(Map<String, dynamic> json) => OrdersReport(
      orderType: json['orderType'] as int? ?? 0,
      token: json['token'] as String?,
      packageName: json['packageName'] as String?,
      productId: json['productId'] as String?,
      subscriptionId: json['subscriptionId'] as String?,
      bundleId: json['bundleId'] as String?,
      receipt: json['receipt'] as String?,
      price: json['price'] as String?,
      currency: json['currency'] as String?,
      sku: json['sku'] as String?,
      countryCode: json['country'] as String?,
      orderUserInfo: json['userInfo'] == null
          ? null
          : OrderUserInfo.fromJson(json['userInfo'] as Map<String, dynamic>),
      userIdentification: json['eventConfig'] == null
          ? null
          : UserIdentification.fromJson(
              json['eventConfig'] as Map<String, dynamic>),
      offerId: json['offerId'] as String?,
      basePlanId: json['basePlanId'] as String?,
      orderId: json['orderId'] as String?,
      transactionDate: json['transactionDate'] as int?,
    );

Map<String, dynamic> _$OrdersReportToJson(OrdersReport instance) =>
    <String, dynamic>{
      'orderType': instance.orderType,
      'packageName': instance.packageName,
      'productId': instance.productId,
      'subscriptionId': instance.subscriptionId,
      'token': instance.token,
      'offerId': instance.offerId,
      'basePlanId': instance.basePlanId,
      'bundleId': instance.bundleId,
      'receipt': instance.receipt,
      'sku': instance.sku,
      'country': instance.countryCode,
      'price': instance.price,
      'currency': instance.currency,
      'userInfo': instance.orderUserInfo,
      'eventConfig': instance.userIdentification,
      'orderId': instance.orderId,
      'transactionDate': instance.transactionDate,
    };

OrdersResponse _$OrdersResponseFromJson(Map<String, dynamic> json) =>
    OrdersResponse(
      (json['usdPrice'] as num?)?.toDouble() ?? 0.0,
      json['test'] as bool? ?? false,
    );

Map<String, dynamic> _$OrdersResponseToJson(OrdersResponse instance) =>
    <String, dynamic>{
      'usdPrice': instance.usdPrice,
      'test': instance.test,
    };
