fromMap static method
- Map<
String, dynamic> ? map, { - EnumMethod? enumMethod,
Gets a possible WebStorageItem instance from a Map value.
Implementation
static WebStorageItem? fromMap(
Map<String, dynamic>? map, {
EnumMethod? enumMethod,
}) {
if (map == null) {
return null;
}
final instance = WebStorageItem(key: map['key'], value: map['value']);
return instance;
}