// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_poll_state_response.dart';

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

GetPollStateResponse _$GetPollStateResponseFromJson(
  Map<String, dynamic> json,
) =>
    GetPollStateResponse(
        GetPollStateResponseObject.fromJson(
          json['data'] as Map<String, dynamic>,
        ),
      )
      ..headers = (json['headers'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(k, e as String),
      );

Map<String, dynamic> _$GetPollStateResponseToJson(
  GetPollStateResponse instance,
) => <String, dynamic>{
  'headers': ?instance.headers,
  'data': instance.data.toJson(),
};

GetPollStateResponseObject _$GetPollStateResponseObjectFromJson(
  Map<String, dynamic> json,
) => GetPollStateResponseObject(
  (json['id'] as num).toInt(),
  json['question'] as String,
  (json['options'] as List<dynamic>).map((e) => e as String).toList(),
  json['votes'],
  json['actorType'] as String,
  json['actorId'] as String,
  json['actorDisplayName'] as String,
  (json['status'] as num).toInt(),
  (json['resultMode'] as num).toInt(),
  (json['maxVotes'] as num).toInt(),
  (json['votedSelf'] as List<dynamic>).map((e) => (e as num).toInt()).toList(),
  (json['numVoters'] as num?)?.toInt(),
  json['details'] as List<dynamic>?,
);

Map<String, dynamic> _$GetPollStateResponseObjectToJson(
  GetPollStateResponseObject instance,
) => <String, dynamic>{
  'id': instance.id,
  'question': instance.question,
  'options': instance.options,
  'votes': instance.votes,
  'actorType': instance.actorType,
  'actorId': instance.actorId,
  'actorDisplayName': instance.actorDisplayName,
  'status': instance.status,
  'resultMode': instance.resultMode,
  'maxVotes': instance.maxVotes,
  'votedSelf': instance.votedSelf,
  'numVoters': instance.numVoters,
  'details': instance.details,
};
