InventorySource.fromJson constructor

InventorySource.fromJson(
  1. Map json_
)

Implementation

InventorySource.fromJson(core.Map json_)
    : this(
        commitment: json_.containsKey('commitment')
            ? json_['commitment'] as core.String
            : null,
        creativeConfigs: json_.containsKey('creativeConfigs')
            ? (json_['creativeConfigs'] as core.List)
                .map((value) => CreativeConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dealId: json_.containsKey('dealId')
            ? json_['dealId'] as core.String
            : null,
        deliveryMethod: json_.containsKey('deliveryMethod')
            ? json_['deliveryMethod'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        exchange: json_.containsKey('exchange')
            ? json_['exchange'] as core.String
            : null,
        guaranteedOrderId: json_.containsKey('guaranteedOrderId')
            ? json_['guaranteedOrderId'] as core.String
            : null,
        inventorySourceId: json_.containsKey('inventorySourceId')
            ? json_['inventorySourceId'] as core.String
            : null,
        inventorySourceProductType:
            json_.containsKey('inventorySourceProductType')
                ? json_['inventorySourceProductType'] as core.String
                : null,
        inventorySourceType: json_.containsKey('inventorySourceType')
            ? json_['inventorySourceType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        publisherName: json_.containsKey('publisherName')
            ? json_['publisherName'] as core.String
            : null,
        rateDetails: json_.containsKey('rateDetails')
            ? RateDetails.fromJson(
                json_['rateDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        readAdvertiserIds: json_.containsKey('readAdvertiserIds')
            ? (json_['readAdvertiserIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        readPartnerIds: json_.containsKey('readPartnerIds')
            ? (json_['readPartnerIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        readWriteAccessors: json_.containsKey('readWriteAccessors')
            ? InventorySourceAccessors.fromJson(json_['readWriteAccessors']
                as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? InventorySourceStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        timeRange: json_.containsKey('timeRange')
            ? TimeRange.fromJson(
                json_['timeRange'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );