DataSource.fromJson constructor

DataSource.fromJson(
  1. Map json_
)

Implementation

DataSource.fromJson(core.Map json_)
    : this(
        authorizationType: json_.containsKey('authorizationType')
            ? json_['authorizationType'] as core.String
            : null,
        clientId: json_.containsKey('clientId')
            ? json_['clientId'] as core.String
            : null,
        dataRefreshType: json_.containsKey('dataRefreshType')
            ? json_['dataRefreshType'] as core.String
            : null,
        dataSourceId: json_.containsKey('dataSourceId')
            ? json_['dataSourceId'] as core.String
            : null,
        defaultDataRefreshWindowDays:
            json_.containsKey('defaultDataRefreshWindowDays')
                ? json_['defaultDataRefreshWindowDays'] as core.int
                : null,
        defaultSchedule: json_.containsKey('defaultSchedule')
            ? json_['defaultSchedule'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        helpUrl: json_.containsKey('helpUrl')
            ? json_['helpUrl'] as core.String
            : null,
        manualRunsDisabled: json_.containsKey('manualRunsDisabled')
            ? json_['manualRunsDisabled'] as core.bool
            : null,
        minimumScheduleInterval: json_.containsKey('minimumScheduleInterval')
            ? json_['minimumScheduleInterval'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.List)
                .map((value) => DataSourceParameter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        scopes: json_.containsKey('scopes')
            ? (json_['scopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        supportsCustomSchedule: json_.containsKey('supportsCustomSchedule')
            ? json_['supportsCustomSchedule'] as core.bool
            : null,
        supportsMultipleTransfers:
            json_.containsKey('supportsMultipleTransfers')
                ? json_['supportsMultipleTransfers'] as core.bool
                : null,
        transferType: json_.containsKey('transferType')
            ? json_['transferType'] as core.String
            : null,
        updateDeadlineSeconds: json_.containsKey('updateDeadlineSeconds')
            ? json_['updateDeadlineSeconds'] as core.int
            : null,
      );