// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'orders_model.dart';

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

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?,
    );

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

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

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