// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'box.model.dart';

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

Box _$BoxFromJson(Map<String, dynamic> json) {
  return Box()
    ..id = json['id'] as int
    ..company_id = json['company_id'] as int
    ..name = json['name'] as String
    ..address = json['address'] as String
    ..city = json['city'] as String
    ..country = json['country'] as String
    ..county = json['county'] as String
    ..postal_code = json['postal_code'] as String
    ..phone = json['phone'] as String
    ..email = json['email'] as String
    ..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)
    ..unjoin_session_before_minutes =
        json['unjoin_session_before_minutes'] as String
    ..join_session_before_days = json['join_session_before_days'] as String
    ..user_subscription_expires_after_days =
        json['user_subscription_expires_after_days'] as String
    ..workouts_visible_before_session =
        json['workouts_visible_before_session'] as String
    ..tax_prcnt_box_order = json['tax_prcnt_box_order'] as String
    ..generate_box_orders_before_renew =
        json['generate_box_orders_before_renew'] as String
    ..usage = json['usage'] == null
        ? null
        : Usage.fromJson(json['usage'] as Map<String, dynamic>);
}

Map<String, dynamic> _$BoxToJson(Box instance) => <String, dynamic>{
      'id': instance.id,
      'company_id': instance.company_id,
      'name': instance.name,
      'address': instance.address,
      'city': instance.city,
      'country': instance.country,
      'county': instance.county,
      'postal_code': instance.postal_code,
      'phone': instance.phone,
      'email': instance.email,
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
      'unjoin_session_before_minutes': instance.unjoin_session_before_minutes,
      'join_session_before_days': instance.join_session_before_days,
      'user_subscription_expires_after_days':
          instance.user_subscription_expires_after_days,
      'workouts_visible_before_session':
          instance.workouts_visible_before_session,
      'tax_prcnt_box_order': instance.tax_prcnt_box_order,
      'generate_box_orders_before_renew':
          instance.generate_box_orders_before_renew,
      'usage': instance.usage,
    };
