Skip to content

Commit

Permalink
temporary fix for allowing version to be an object instead of just do…
Browse files Browse the repository at this point in the history
…uble
  • Loading branch information
noumantahir committed Oct 29, 2024
1 parent 9b966ab commit 015c3a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ThreadJsonMetadata {
final String? format;

final ContentType? contentType;
final double? version;
final Object? version;
final String? question;
final PollPreferredInterpretation? preferredInterpretation;
final int? maxChoicesVoted;
Expand Down Expand Up @@ -99,7 +99,7 @@ class ThreadJsonMetadata {
? ContentType.poll
: ContentType.general,

version: json?['version'] as double?,
version: json?['version'],
question: json?['question'] as String?,
choices: asList(json, 'choices').map((e) => e.toString()).toList(),
filters: json?['filters'] != null ? PollFilters.fromMap(json?['filters']) : null,
Expand Down

0 comments on commit 015c3a4

Please sign in to comment.