// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'payment_type.model.dart';

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

PaymentType _$PaymentTypeFromJson(Map<String, dynamic> json) {
  return PaymentType()
    ..id = json['id'] as int
    ..name = json['name'] as String
    ..slug = json['slug'] as String
    ..description = json['description'] as String
    ..active = json['active'] as bool
    ..auto = json['auto'] 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);
}

Map<String, dynamic> _$PaymentTypeToJson(PaymentType instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'slug': instance.slug,
      'description': instance.description,
      'active': instance.active,
      'auto': instance.auto,
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
    };
