// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'recipient_group_model.dart';

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

RecipientGroup _$RecipientGroupFromJson(Map<String, dynamic> json) =>
    RecipientGroup(
      id: json['id'] as String?,
      name: json['name'] as String,
      description: json['description'] as String?,
      userId: json['userId'] as String?,
      workspaceId: json['workspaceId'] as String?,
      createdAt: json['createdAt'] as String?,
    );

Map<String, dynamic> _$RecipientGroupToJson(RecipientGroup instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'description': instance.description,
      'userId': instance.userId,
      'workspaceId': instance.workspaceId,
      'createdAt': instance.createdAt,
    };

RecipientGroupMember _$RecipientGroupMemberFromJson(
  Map<String, dynamic> json,
) => RecipientGroupMember(
  id: json['id'] as String?,
  recipientGroupId: json['recipientGroupId'] as String,
  recipientUid: json['recipientUid'] as String?,
  userId: json['userId'] as String?,
  account: json['account'] as String?,
  createdAt: json['createdAt'] as String?,
  recipient: Recipient.fromJson(json['recipient'] as Map<String, dynamic>),
);

Map<String, dynamic> _$RecipientGroupMemberToJson(
  RecipientGroupMember instance,
) => <String, dynamic>{
  'id': instance.id,
  'recipientGroupId': instance.recipientGroupId,
  'recipientUid': instance.recipientUid,
  'userId': instance.userId,
  'account': instance.account,
  'createdAt': instance.createdAt,
  'recipient': instance.recipient.toJson(),
};

CreateGroupRequest _$CreateGroupRequestFromJson(Map<String, dynamic> json) =>
    CreateGroupRequest(
      name: json['name'] as String,
      description: json['description'] as String?,
      userId: json['userId'] as String,
      workspaceId: json['workspaceId'] as String,
      recipients: (json['recipients'] as List<dynamic>)
          .map((e) => Recipient.fromJson(e as Map<String, dynamic>))
          .toList(),
    );

Map<String, dynamic> _$CreateGroupRequestToJson(CreateGroupRequest instance) =>
    <String, dynamic>{
      'name': instance.name,
      'description': instance.description,
      'userId': instance.userId,
      'workspaceId': instance.workspaceId,
      'recipients': instance.recipients.map((e) => e.toJson()).toList(),
    };
