fromMap static method

WebStorageItem? fromMap(
  1. Map<String, dynamic>? map, {
  2. 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;
}