DataSource.fromJson constructor

DataSource.fromJson(
  1. Map json_
)

Implementation

DataSource.fromJson(core.Map json_)
  : this(
      dataSourceId: json_['dataSourceId'] as core.String?,
      displayName: json_['displayName'] as core.String?,
      fileInput:
          json_.containsKey('fileInput')
              ? FileInput.fromJson(
                json_['fileInput'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      input: json_['input'] as core.String?,
      localInventoryDataSource:
          json_.containsKey('localInventoryDataSource')
              ? LocalInventoryDataSource.fromJson(
                json_['localInventoryDataSource']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      merchantReviewDataSource:
          json_.containsKey('merchantReviewDataSource')
              ? MerchantReviewDataSource.fromJson(
                json_['merchantReviewDataSource']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      name: json_['name'] as core.String?,
      primaryProductDataSource:
          json_.containsKey('primaryProductDataSource')
              ? PrimaryProductDataSource.fromJson(
                json_['primaryProductDataSource']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      productReviewDataSource:
          json_.containsKey('productReviewDataSource')
              ? ProductReviewDataSource.fromJson(
                json_['productReviewDataSource']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      promotionDataSource:
          json_.containsKey('promotionDataSource')
              ? PromotionDataSource.fromJson(
                json_['promotionDataSource']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      regionalInventoryDataSource:
          json_.containsKey('regionalInventoryDataSource')
              ? RegionalInventoryDataSource.fromJson(
                json_['regionalInventoryDataSource']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      supplementalProductDataSource:
          json_.containsKey('supplementalProductDataSource')
              ? SupplementalProductDataSource.fromJson(
                json_['supplementalProductDataSource']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
    );