DataRepositoryConfiguration.fromJson constructor

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

Implementation

factory DataRepositoryConfiguration.fromJson(Map<String, dynamic> json) {
  return DataRepositoryConfiguration(
    autoImportPolicy:
        (json['AutoImportPolicy'] as String?)?.toAutoImportPolicyType(),
    exportPath: json['ExportPath'] as String?,
    failureDetails: json['FailureDetails'] != null
        ? DataRepositoryFailureDetails.fromJson(
            json['FailureDetails'] as Map<String, dynamic>)
        : null,
    importPath: json['ImportPath'] as String?,
    importedFileChunkSize: json['ImportedFileChunkSize'] as int?,
    lifecycle: (json['Lifecycle'] as String?)?.toDataRepositoryLifecycle(),
  );
}