// GENERATED CODE - DO NOT MODIFY BY HAND

part of '../../../../data/remote/models/order_review.dart';

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

OrderReview _$OrderReviewFromJson(Map json) => OrderReview(
  products: (json['products'] as List<dynamic>)
      .map((e) => Product.fromJson(Map<String, dynamic>.from(e as Map)))
      .toList(),
  areaId: (json['area_id'] as num).toInt(),
  locationCode: json['location_code'] as String,
  delivery: json['delivery'] as bool,
  requestedDeliveryTime: json['requested_delivery_time'] as String,
  paymentType: json['payment_type'] as String,
  fullName: json['full_name'] as String,
  customerId: json['customer_id'] as String,
  customerName: json['customer_name'] as String,
  customerComment: json['customer_comment'] as String,
  orderType: json['order_type'] as String,
  deliveryPrice: (json['delivery_price'] as num).toDouble(),
  totalPrice: (json['total_price'] as num).toDouble(),
  totalPriceBeforeSavings: (json['total_price_before_savings'] as num)
      .toDouble(),
);

Map<String, dynamic> _$OrderReviewToJson(OrderReview instance) =>
    <String, dynamic>{
      'products': instance.products.map((e) => e.toJson()).toList(),
      'area_id': instance.areaId,
      'location_code': instance.locationCode,
      'delivery': instance.delivery,
      'requested_delivery_time': instance.requestedDeliveryTime,
      'payment_type': instance.paymentType,
      'full_name': instance.fullName,
      'customer_id': instance.customerId,
      'customer_name': instance.customerName,
      'customer_comment': instance.customerComment,
      'order_type': instance.orderType,
      'delivery_price': instance.deliveryPrice,
      'total_price': instance.totalPrice,
      'total_price_before_savings': instance.totalPriceBeforeSavings,
    };