DatabaseWithObjectStores.fromJson constructor

DatabaseWithObjectStores.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DatabaseWithObjectStores.fromJson(Map<String, dynamic> json) {
  return DatabaseWithObjectStores(
    name: json['name'] as String,
    version: json['version'] as num,
    objectStores: (json['objectStores'] as List)
        .map((e) => ObjectStore.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}