Skip to content

Commit

Permalink
Merge pull request #15 from ecency/nt/version-type-cast
Browse files Browse the repository at this point in the history
temporary fix for allowing version to be an object instead of just double
  • Loading branch information
feruzm authored Oct 30, 2024
2 parents 9b966ab + 015c3a4 commit c0b8935
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 c0b8935

Please sign in to comment.