SnapshotSettings.fromJson constructor

SnapshotSettings.fromJson(
  1. Object? j
)

Implementation

factory SnapshotSettings.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SnapshotSettings(
    accessLocation: switch (json['accessLocation']) {
      null => null,
      Object $1 => SnapshotSettingsAccessLocation.fromJson($1),
    },
    storageLocation: switch (json['storageLocation']) {
      null => null,
      Object $1 => SnapshotSettingsStorageLocationSettings.fromJson($1),
    },
  );
}