DataSourceConfiguration.fromJson constructor

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

Implementation

factory DataSourceConfiguration.fromJson(Map<String, dynamic> json) {
  return DataSourceConfiguration(
    confluenceConfiguration: json['ConfluenceConfiguration'] != null
        ? ConfluenceConfiguration.fromJson(
            json['ConfluenceConfiguration'] as Map<String, dynamic>)
        : null,
    databaseConfiguration: json['DatabaseConfiguration'] != null
        ? DatabaseConfiguration.fromJson(
            json['DatabaseConfiguration'] as Map<String, dynamic>)
        : null,
    googleDriveConfiguration: json['GoogleDriveConfiguration'] != null
        ? GoogleDriveConfiguration.fromJson(
            json['GoogleDriveConfiguration'] as Map<String, dynamic>)
        : null,
    oneDriveConfiguration: json['OneDriveConfiguration'] != null
        ? OneDriveConfiguration.fromJson(
            json['OneDriveConfiguration'] as Map<String, dynamic>)
        : null,
    s3Configuration: json['S3Configuration'] != null
        ? S3DataSourceConfiguration.fromJson(
            json['S3Configuration'] as Map<String, dynamic>)
        : null,
    salesforceConfiguration: json['SalesforceConfiguration'] != null
        ? SalesforceConfiguration.fromJson(
            json['SalesforceConfiguration'] as Map<String, dynamic>)
        : null,
    serviceNowConfiguration: json['ServiceNowConfiguration'] != null
        ? ServiceNowConfiguration.fromJson(
            json['ServiceNowConfiguration'] as Map<String, dynamic>)
        : null,
    sharePointConfiguration: json['SharePointConfiguration'] != null
        ? SharePointConfiguration.fromJson(
            json['SharePointConfiguration'] as Map<String, dynamic>)
        : null,
  );
}