TransferSpec.fromJson constructor

TransferSpec.fromJson(
  1. Map _json
)

Implementation

TransferSpec.fromJson(core.Map _json) {
  if (_json.containsKey("awsS3DataSource")) {
    awsS3DataSource = new AwsS3Data.fromJson(_json["awsS3DataSource"]);
  }
  if (_json.containsKey("azureBlobStorageDataSource")) {
    azureBlobStorageDataSource = new AzureBlobStorageData.fromJson(
        _json["azureBlobStorageDataSource"]);
  }
  if (_json.containsKey("gcsDataSink")) {
    gcsDataSink = new GcsData.fromJson(_json["gcsDataSink"]);
  }
  if (_json.containsKey("gcsDataSource")) {
    gcsDataSource = new GcsData.fromJson(_json["gcsDataSource"]);
  }
  if (_json.containsKey("httpDataSource")) {
    httpDataSource = new HttpData.fromJson(_json["httpDataSource"]);
  }
  if (_json.containsKey("objectConditions")) {
    objectConditions =
        new ObjectConditions.fromJson(_json["objectConditions"]);
  }
  if (_json.containsKey("transferOptions")) {
    transferOptions = new TransferOptions.fromJson(_json["transferOptions"]);
  }
}