// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'pricing.model.dart';

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

Pricing _$PricingFromJson(Map<String, dynamic> json) {
  return Pricing()
    ..id = json['id'] as int
    ..company_id = json['company_id'] as int
    ..name = json['name'] as String
    ..description = json['description'] as String
    ..stripe_id = json['stripe_id'] as String
    ..price = (json['price'] as num)?.toDouble()
    ..vat_included = (json['vat_included'] as num)?.toDouble()
    ..wod_counter = json['wod_counter'] as int
    ..open_counter = json['open_counter'] as int
    ..total_counter = json['total_counter'] as int
    ..days = json['days'] as int
    ..start_time = json['start_time'] as String
    ..end_time = json['end_time'] as String
    ..recharge_weekly = json['recharge_weekly'] as bool
    ..created_at = json['created_at'] == null
        ? null
        : DateTime.parse(json['created_at'] as String)
    ..updated_at = json['updated_at'] == null
        ? null
        : DateTime.parse(json['updated_at'] as String)
    ..boxes = (json['boxes'] as List)
        ?.map((e) => e == null ? null : Box.fromJson(e as Map<String, dynamic>))
        ?.toList()
    ..company = json['company'] == null
        ? null
        : Company.fromJson(json['company'] as Map<String, dynamic>)
    ..box_ids = (json['box_ids'] as List)?.map((e) => e as int)?.toList();
}

Map<String, dynamic> _$PricingToJson(Pricing instance) => <String, dynamic>{
      'id': instance.id,
      'company_id': instance.company_id,
      'name': instance.name,
      'description': instance.description,
      'stripe_id': instance.stripe_id,
      'price': instance.price,
      'vat_included': instance.vat_included,
      'wod_counter': instance.wod_counter,
      'open_counter': instance.open_counter,
      'total_counter': instance.total_counter,
      'days': instance.days,
      'start_time': instance.start_time,
      'end_time': instance.end_time,
      'recharge_weekly': instance.recharge_weekly,
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
      'boxes': instance.boxes,
      'company': instance.company,
      'box_ids': instance.box_ids,
    };
