// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'plan.model.dart';

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

Plan _$PlanFromJson(Map<String, dynamic> json) {
  return Plan()
    ..id = json['id'] as int
    ..name = json['name'] as String
    ..description = json['description'] as String
    ..stripe_id = json['stripe_id'] as String
    ..n_athletes = json['n_athletes'] as int
    ..n_coaches = json['n_coaches'] as int
    ..n_admins = json['n_admins'] as int
    ..n_boxes = json['n_boxes'] as int
    ..is_highlighted = json['is_highlighted'] as bool
    ..active = json['active'] as bool
    ..tax_prcnt = (json['tax_prcnt'] as num)?.toDouble()
    ..subtotal = (json['subtotal'] as num)?.toDouble()
    ..tax_amount = (json['tax_amount'] as num)?.toDouble()
    ..total = (json['total'] as num)?.toDouble()
    ..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);
}

Map<String, dynamic> _$PlanToJson(Plan instance) => <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'description': instance.description,
      'stripe_id': instance.stripe_id,
      'n_athletes': instance.n_athletes,
      'n_coaches': instance.n_coaches,
      'n_admins': instance.n_admins,
      'n_boxes': instance.n_boxes,
      'is_highlighted': instance.is_highlighted,
      'active': instance.active,
      'tax_prcnt': instance.tax_prcnt,
      'subtotal': instance.subtotal,
      'tax_amount': instance.tax_amount,
      'total': instance.total,
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
    };
