// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'outlet_model.dart';

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

OutletModel _$OutletModelFromJson(Map<String, dynamic> json) => OutletModel(
  serverId: json['id'] as String,
  name: json['name'] as String,
  email: json['email'] as String?,
  phoneNumber: json['phone_number'] as String?,
  fullAddress: json['full_address'] as String?,
  latitude: (json['latitude'] as num?)?.toDouble(),
  longitude: (json['longitude'] as num?)?.toDouble(),
  serverPhotoUrl: json['server_photo_url'] as String?,
  serverBannerUrl: json['server_banner_url'] as String?,
  isMainOutlet: json['is_main_outlet'] as bool?,
  isActive: json['is_active'] as bool?,
  createdAt: DateTime.parse(json['created_at'] as String),
  updatedAt: DateTime.parse(json['updated_at'] as String),
);

Map<String, dynamic> _$OutletModelToJson(OutletModel instance) =>
    <String, dynamic>{
      'id': instance.serverId,
      'name': instance.name,
      'email': instance.email,
      'phone_number': instance.phoneNumber,
      'full_address': instance.fullAddress,
      'latitude': instance.latitude,
      'longitude': instance.longitude,
      'server_photo_url': instance.serverPhotoUrl,
      'server_banner_url': instance.serverBannerUrl,
      'is_main_outlet': instance.isMainOutlet,
      'is_active': instance.isActive,
      'created_at': instance.createdAt.toIso8601String(),
      'updated_at': instance.updatedAt.toIso8601String(),
    };
