diff --git a/cyberwow/lib/helper.dart b/cyberwow/lib/helper.dart index cdabea8..3b65e7e 100644 --- a/cyberwow/lib/helper.dart +++ b/cyberwow/lib/helper.dart @@ -32,6 +32,6 @@ int asInt(dynamic x) => x?.toInt() ?? 0; bool asBool(dynamic x) => x ?? false; List asList(dynamic x) => x ?? []; -List> asJsonArray(dynamic x) => x.cast>() ?? []; +List> asJsonArray(dynamic x) => x?.cast>() ?? []; Map asMap(dynamic x) => x ?? {};