// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'company.model.dart';

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

Company _$CompanyFromJson(Map<String, dynamic> json) {
  return Company()
    ..id = json['id'] as int
    ..name = json['name'] as String
    ..slogan = json['slogan'] as String
    ..logo_url = json['logo_url'] as String
    ..cif = json['cif'] as String
    ..address = json['address'] as String
    ..city = json['city'] as String
    ..zipcode = json['zipcode'] as String
    ..country = json['country'] as String
    ..county = json['county'] as String
    ..phone = json['phone'] as String
    ..email = json['email'] as String
    ..fact_name = json['fact_name'] as String
    ..fact_address_line1 = json['fact_address_line1'] as String
    ..fact_address_line2 = json['fact_address_line2'] as String
    ..fact_zipcode = json['fact_zipcode'] as String
    ..fact_city = json['fact_city'] as String
    ..fact_county = json['fact_county'] as String
    ..fact_country_code = json['fact_country_code'] as String
    ..fact_prefix = json['fact_prefix'] as String
    ..fact_serie = json['fact_serie'] as String
    ..card_brand = json['card_brand'] as String
    ..card_last_four = json['card_last_four'] as String
    ..trial_ends_at = json['trial_ends_at'] == null
        ? null
        : DateTime.parse(json['trial_ends_at'] 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)
    ..active_plan = json['active_plan'] == null
        ? null
        : Subscription.fromJson(json['active_plan'] as Map<String, dynamic>)
    ..fiscal_address = json['fiscal_address'] as String
    ..usage = json['usage'] == null
        ? null
        : Usage.fromJson(json['usage'] as Map<String, dynamic>)
    ..is_stripe_active = json['is_stripe_active'] as bool
    ..boxes = (json['boxes'] as List)
        ?.map((e) => e == null ? null : Box.fromJson(e as Map<String, dynamic>))
        ?.toList()
    ..stripe_public_key = json["stripe_public_key"] as String;
}

Map<String, dynamic> _$CompanyToJson(Company instance) => <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'slogan': instance.slogan,
      'logo_url': instance.logo_url,
      'cif': instance.cif,
      'address': instance.address,
      'city': instance.city,
      'zipcode': instance.zipcode,
      'country': instance.country,
      'county': instance.county,
      'phone': instance.phone,
      'email': instance.email,
      'fact_name': instance.fact_name,
      'fact_address_line1': instance.fact_address_line1,
      'fact_address_line2': instance.fact_address_line2,
      'fact_zipcode': instance.fact_zipcode,
      'fact_city': instance.fact_city,
      'fact_county': instance.fact_county,
      'fact_country_code': instance.fact_country_code,
      'fact_prefix': instance.fact_prefix,
      'fact_serie': instance.fact_serie,
      'card_brand': instance.card_brand,
      'card_last_four': instance.card_last_four,
      'trial_ends_at': instance.trial_ends_at?.toIso8601String(),
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
      'active_plan': instance.active_plan,
      'fiscal_address': instance.fiscal_address,
      'usage': instance.usage,
      'is_stripe_active': instance.is_stripe_active,
      'boxes': instance.boxes,
      'stripe_public_key': instance.stripe_public_key
    };
