fixed finished polls causing errors, made poll list dense
This commit is contained in:
@@ -28,7 +28,7 @@ class GetPollStateResponseObject {
|
||||
int maxVotes;
|
||||
List<int> votedSelf;
|
||||
int? numVoters;
|
||||
List<String>? details;
|
||||
List<dynamic>? details;
|
||||
|
||||
GetPollStateResponseObject(
|
||||
this.id,
|
||||
|
||||
@@ -40,7 +40,7 @@ GetPollStateResponseObject _$GetPollStateResponseObjectFromJson(
|
||||
(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((e) => e as String).toList(),
|
||||
json['details'] as List<dynamic>?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$GetPollStateResponseObjectToJson(
|
||||
|
||||
Reference in New Issue
Block a user