ListArchive.from constructor
ListArchive.from(
- List raw
Replaces all instances of Map and List in this object with KeyedArchive and ListArchives.
Implementation
ListArchive.from(List<dynamic> raw)
: _inner = raw.map((e) {
if (e is Map<String, dynamic>) {
return KeyedArchive(e);
} else if (e is List) {
return ListArchive.from(e);
}
return e;
}).toList();