// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_participants_response.dart';

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

GetParticipantsResponse _$GetParticipantsResponseFromJson(
  Map<String, dynamic> json,
) =>
    GetParticipantsResponse(
        (json['data'] as List<dynamic>)
            .map(
              (e) => GetParticipantsResponseObject.fromJson(
                e as Map<String, dynamic>,
              ),
            )
            .toSet(),
      )
      ..headers = (json['headers'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(k, e as String),
      );

Map<String, dynamic> _$GetParticipantsResponseToJson(
  GetParticipantsResponse instance,
) => <String, dynamic>{
  'headers': ?instance.headers,
  'data': instance.data.map((e) => e.toJson()).toList(),
};

GetParticipantsResponseObject _$GetParticipantsResponseObjectFromJson(
  Map<String, dynamic> json,
) => GetParticipantsResponseObject(
  (json['attendeeId'] as num).toInt(),
  json['actorType'] as String,
  json['actorId'] as String,
  json['displayName'] as String,
  $enumDecode(
    _$GetParticipantsResponseObjectParticipantTypeEnumMap,
    json['participantType'],
  ),
  (json['lastPing'] as num).toInt(),
  $enumDecode(
    _$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap,
    json['inCall'],
  ),
  (json['permissions'] as num).toInt(),
  (json['attendeePermissions'] as num).toInt(),
  json['sessionId'] as String?,
  (json['sessionIds'] as List<dynamic>).map((e) => e as String).toList(),
  json['status'] as String?,
  json['statusIcon'] as String?,
  json['statusMessage'] as String?,
  json['roomToken'] as String?,
);

Map<String, dynamic> _$GetParticipantsResponseObjectToJson(
  GetParticipantsResponseObject instance,
) => <String, dynamic>{
  'attendeeId': instance.attendeeId,
  'actorType': instance.actorType,
  'actorId': instance.actorId,
  'displayName': instance.displayName,
  'participantType':
      _$GetParticipantsResponseObjectParticipantTypeEnumMap[instance
          .participantType]!,
  'lastPing': instance.lastPing,
  'inCall':
      _$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap[instance
          .inCall]!,
  'permissions': instance.permissions,
  'attendeePermissions': instance.attendeePermissions,
  'sessionId': instance.sessionId,
  'sessionIds': instance.sessionIds,
  'status': instance.status,
  'statusIcon': instance.statusIcon,
  'statusMessage': instance.statusMessage,
  'roomToken': instance.roomToken,
};

const _$GetParticipantsResponseObjectParticipantTypeEnumMap = {
  GetParticipantsResponseObjectParticipantType.owner: 1,
  GetParticipantsResponseObjectParticipantType.moderator: 2,
  GetParticipantsResponseObjectParticipantType.user: 3,
  GetParticipantsResponseObjectParticipantType.guest: 4,
  GetParticipantsResponseObjectParticipantType.userFollowingPublicLink: 5,
  GetParticipantsResponseObjectParticipantType.guestWithModeratorPermissions: 6,
};

const _$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap = {
  GetParticipantsResponseObjectParticipantsInCallFlags.disconnected: 0,
  GetParticipantsResponseObjectParticipantsInCallFlags.inCall: 1,
  GetParticipantsResponseObjectParticipantsInCallFlags.providesAudio: 2,
  GetParticipantsResponseObjectParticipantsInCallFlags.providesVideo: 3,
  GetParticipantsResponseObjectParticipantsInCallFlags.usesSipDialIn: 4,
};
