From 663d0a26383d5695d454d46a9c972080b6500189 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Thu, 25 Jun 2020 14:05:10 +0000 Subject: [PATCH] parse order of tags better --- lib/matrix_api/model/tag.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matrix_api/model/tag.dart b/lib/matrix_api/model/tag.dart index af6adad..f63d6e5 100644 --- a/lib/matrix_api/model/tag.dart +++ b/lib/matrix_api/model/tag.dart @@ -20,7 +20,7 @@ class Tag { double order; Tag.fromJson(Map json) { - order = json['order']?.toDouble(); + order = double.tryParse(json['order'].toString()); } Map toJson() {