// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_reactions_response.dart';

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

GetReactionsResponse _$GetReactionsResponseFromJson(
  Map<String, dynamic> json,
) =>
    GetReactionsResponse(
        (json['data'] as Map<String, dynamic>).map(
          (k, e) => MapEntry(
            k,
            (e as List<dynamic>)
                .map(
                  (e) => GetReactionsResponseObject.fromJson(
                    e as Map<String, dynamic>,
                  ),
                )
                .toList(),
          ),
        ),
      )
      ..headers = (json['headers'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(k, e as String),
      );

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

GetReactionsResponseObject _$GetReactionsResponseObjectFromJson(
  Map<String, dynamic> json,
) => GetReactionsResponseObject(
  $enumDecode(_$GetReactionsResponseObjectActorTypeEnumMap, json['actorType']),
  json['actorId'] as String,
  json['actorDisplayName'] as String,
  (json['timestamp'] as num).toInt(),
);

Map<String, dynamic> _$GetReactionsResponseObjectToJson(
  GetReactionsResponseObject instance,
) => <String, dynamic>{
  'actorType':
      _$GetReactionsResponseObjectActorTypeEnumMap[instance.actorType]!,
  'actorId': instance.actorId,
  'actorDisplayName': instance.actorDisplayName,
  'timestamp': instance.timestamp,
};

const _$GetReactionsResponseObjectActorTypeEnumMap = {
  GetReactionsResponseObjectActorType.guests: 'guests',
  GetReactionsResponseObjectActorType.users: 'users',
};
