// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'staff_model.dart';

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

StaffModel _$StaffModelFromJson(Map<String, dynamic> json) => StaffModel(
  serverId: json['id'] as String,
  outletId: json['outlet_id'] as String,
  name: json['name'] as String,
  email: json['email'] as String?,
  phoneNumber: json['phone_number'] as String?,
  role: json['role'] as String,
  placeOfBirth: json['place_of_birth'] as String?,
  dateOfBirth: json['date_of_birth'] as String?,
  shiftName: json['shift_name'] as String?,
  shiftStartTime: json['shift_start_time'] as String?,
  shiftEndTime: json['shift_end_time'] as String?,
  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> _$StaffModelToJson(StaffModel instance) =>
    <String, dynamic>{
      'id': instance.serverId,
      'outlet_id': instance.outletId,
      'name': instance.name,
      'email': instance.email,
      'phone_number': instance.phoneNumber,
      'role': instance.role,
      'place_of_birth': instance.placeOfBirth,
      'date_of_birth': instance.dateOfBirth,
      'shift_name': instance.shiftName,
      'shift_start_time': instance.shiftStartTime,
      'shift_end_time': instance.shiftEndTime,
      'is_active': instance.isActive,
      'created_at': instance.createdAt.toIso8601String(),
      'updated_at': instance.updatedAt.toIso8601String(),
    };
