TransferConfig.fromJson constructor

TransferConfig.fromJson(
  1. Map json_
)

Implementation

TransferConfig.fromJson(core.Map json_)
    : this(
        dataRefreshWindowDays: json_.containsKey('dataRefreshWindowDays')
            ? json_['dataRefreshWindowDays'] as core.int
            : null,
        dataSourceId: json_.containsKey('dataSourceId')
            ? json_['dataSourceId'] as core.String
            : null,
        datasetRegion: json_.containsKey('datasetRegion')
            ? json_['datasetRegion'] as core.String
            : null,
        destinationDatasetId: json_.containsKey('destinationDatasetId')
            ? json_['destinationDatasetId'] as core.String
            : null,
        disabled: json_.containsKey('disabled')
            ? json_['disabled'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        emailPreferences: json_.containsKey('emailPreferences')
            ? EmailPreferences.fromJson(json_['emailPreferences']
                as core.Map<core.String, core.dynamic>)
            : null,
        encryptionConfiguration: json_.containsKey('encryptionConfiguration')
            ? EncryptionConfiguration.fromJson(
                json_['encryptionConfiguration']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nextRunTime: json_.containsKey('nextRunTime')
            ? json_['nextRunTime'] as core.String
            : null,
        notificationPubsubTopic: json_.containsKey('notificationPubsubTopic')
            ? json_['notificationPubsubTopic'] as core.String
            : null,
        ownerInfo: json_.containsKey('ownerInfo')
            ? UserInfo.fromJson(
                json_['ownerInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        params: json_.containsKey('params')
            ? json_['params'] as core.Map<core.String, core.dynamic>
            : null,
        schedule: json_.containsKey('schedule')
            ? json_['schedule'] as core.String
            : null,
        scheduleOptions: json_.containsKey('scheduleOptions')
            ? ScheduleOptions.fromJson(json_['scheduleOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        userId: json_.containsKey('userId')
            ? json_['userId'] as core.String
            : null,
      );