fromJson method Null safety
- dynamic json
Implementation
static SnapshotTestOptions fromJson(dynamic json) {
final driverPathString = json[driverPathOption];
final testsPathString = json[testsPathOption];
final snapsPathString = json[snapsPathOption];
final forceUpdateSnapshot = json[forceUpdateSnapshotsFlag];
return SnapshotTestOptions(
driverDirPath: driverPathString,
testsDirPath: testsPathString,
snapshotDirPath: snapsPathString,
forceCaptureMode: forceUpdateSnapshot,
);
}