fromMap static method

WebStorageItem? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible WebStorageItem instance from a Map value.

Implementation

static WebStorageItem? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = WebStorageItem(
    key: map['key'],
    value: map['value'],
  );
  return instance;
}