CustomBiddingAlgorithm.fromJson constructor

CustomBiddingAlgorithm.fromJson(
  1. Map json_
)

Implementation

CustomBiddingAlgorithm.fromJson(core.Map json_)
    : this(
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        customBiddingAlgorithmId:
            json_.containsKey('customBiddingAlgorithmId')
                ? json_['customBiddingAlgorithmId'] as core.String
                : null,
        customBiddingAlgorithmType:
            json_.containsKey('customBiddingAlgorithmType')
                ? json_['customBiddingAlgorithmType'] as core.String
                : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        entityStatus: json_.containsKey('entityStatus')
            ? json_['entityStatus'] as core.String
            : null,
        modelDetails: json_.containsKey('modelDetails')
            ? (json_['modelDetails'] as core.List)
                .map((value) => CustomBiddingModelDetails.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        partnerId: json_.containsKey('partnerId')
            ? json_['partnerId'] as core.String
            : null,
        sharedAdvertiserIds: json_.containsKey('sharedAdvertiserIds')
            ? (json_['sharedAdvertiserIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );