toJson method Null safety

Json toJson()

Implementation

Json toJson() {
  return {
    forceUpdateSnapshotsFlag: forceCaptureMode,
    driverPathOption: driverDirPath,
    testsPathOption: testsDirPath,
    snapsPathOption: snapshotDirPath,
  };
}