parse order of tags better
This commit is contained in:
parent
00be163153
commit
663d0a2638
|
@ -20,7 +20,7 @@ class Tag {
|
||||||
double order;
|
double order;
|
||||||
|
|
||||||
Tag.fromJson(Map<String, dynamic> json) {
|
Tag.fromJson(Map<String, dynamic> json) {
|
||||||
order = json['order']?.toDouble();
|
order = double.tryParse(json['order'].toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
|
|
Loading…
Reference in a new issue