// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'discount.model.dart';

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

Discount _$DiscountFromJson(Map<String, dynamic> json) {
  return Discount()
    ..id = json['id'] as int
    ..company_id = json['company_id'] as int
    ..description = json['description'] as String
    ..conditions = json['conditions'] as String
    ..price = json['price'] as int
    ..percentatge = json['percentatge'] as int
    ..active = json['active'] as int
    ..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> _$DiscountToJson(Discount instance) => <String, dynamic>{
      'id': instance.id,
      'company_id': instance.company_id,
      'description': instance.description,
      'conditions': instance.conditions,
      'price': instance.price,
      'percentatge': instance.percentatge,
      'active': instance.active,
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
    };
