ManifestStore.fromJson constructor

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

Creates a ManifestStore from a JSON map.

Implementation

factory ManifestStore.fromJson(final Map<String, dynamic> json) =>
  ManifestStore(
    activeManifest: json['active_manifest'] as String?,
    manifests: (json['manifests'] as Map<String, dynamic>?)?.map(
      (final k, final e) => MapEntry(
        k,
        Manifest.fromJson(e as Map<String, dynamic>),
      ),
    ) ?? {},
  );