From 015c3a47b9271c3e3503173917152afb149c1f0c Mon Sep 17 00:00:00 2001 From: noumantahir Date: Tue, 29 Oct 2024 23:04:03 +0500 Subject: [PATCH] temporary fix for allowing version to be an object instead of just double --- .../thread_json_meta_data/thread_json_meta_data.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/threads/models/thread_feeds/thread_json_meta_data/thread_json_meta_data.dart b/lib/features/threads/models/thread_feeds/thread_json_meta_data/thread_json_meta_data.dart index f51b8d7..01430c9 100644 --- a/lib/features/threads/models/thread_feeds/thread_json_meta_data/thread_json_meta_data.dart +++ b/lib/features/threads/models/thread_feeds/thread_json_meta_data/thread_json_meta_data.dart @@ -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; @@ -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,