remove extra if null
This commit is contained in:
parent
2e7bf1a5c9
commit
5761fb77cb
|
|
@ -488,7 +488,7 @@ class Room {
|
||||||
static Tag _tryTagFromJson(Object o) {
|
static Tag _tryTagFromJson(Object o) {
|
||||||
if (o is Map<String, dynamic>) {
|
if (o is Map<String, dynamic>) {
|
||||||
return Tag(
|
return Tag(
|
||||||
order: o?.tryGet<num>('order')?.toDouble(),
|
order: o.tryGet<num>('order')?.toDouble(),
|
||||||
additionalProperties: Map.from(o)..remove('order'));
|
additionalProperties: Map.from(o)..remove('order'));
|
||||||
}
|
}
|
||||||
return Tag();
|
return Tag();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue