// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'notification_recipient.dart';

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

_Recipient _$RecipientFromJson(Map<String, dynamic> json) => _Recipient(
  id: json['id'] as String?,
  fullName: json['full_name'] as String?,
  username: json['username'] as String?,
  email: json['email'] as String?,
  status: json['status'] as String?,
  type: json['type'] as String?,
  role: json['role'] as String?,
  phone: json['phone'] as String?,
  updatedAt: (json['updated_at'] as num?)?.toInt(),
  createdAt: (json['created_at'] as num?)?.toInt(),
  lastLoginAt: (json['last_login_at'] as num?)?.toInt(),
  companies:
      (json['companies'] as List<dynamic>?)
          ?.map((e) => Company.fromJson(e as Map<String, dynamic>))
          .toList(),
);

Map<String, dynamic> _$RecipientToJson(_Recipient instance) =>
    <String, dynamic>{
      'id': instance.id,
      'full_name': instance.fullName,
      'username': instance.username,
      'email': instance.email,
      'status': instance.status,
      'type': instance.type,
      'role': instance.role,
      'phone': instance.phone,
      'updated_at': instance.updatedAt,
      'created_at': instance.createdAt,
      'last_login_at': instance.lastLoginAt,
      'companies': instance.companies,
    };

_Company _$CompanyFromJson(Map<String, dynamic> json) =>
    _Company(id: json['id'] as String?, name: json['name'] as String?);

Map<String, dynamic> _$CompanyToJson(_Company instance) => <String, dynamic>{
  'id': instance.id,
  'name': instance.name,
};
