remove extra if null

This commit is contained in:
Jayesh Nirve 2021-08-14 17:24:37 +05:30
parent 2e7bf1a5c9
commit 5761fb77cb
No known key found for this signature in database
GPG Key ID: E9F26B1FCEB549BD
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ class Room {
static Tag _tryTagFromJson(Object o) {
if (o is Map<String, dynamic>) {
return Tag(
order: o?.tryGet<num>('order')?.toDouble(),
order: o.tryGet<num>('order')?.toDouble(),
additionalProperties: Map.from(o)..remove('order'));
}
return Tag();