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() {