GuaranteedOrder.fromJson constructor

GuaranteedOrder.fromJson(
  1. Map json_
)

Implementation

GuaranteedOrder.fromJson(core.Map json_)
    : this(
        defaultAdvertiserId: json_.containsKey('defaultAdvertiserId')
            ? json_['defaultAdvertiserId'] as core.String
            : null,
        defaultCampaignId: json_.containsKey('defaultCampaignId')
            ? json_['defaultCampaignId'] 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,
        legacyGuaranteedOrderId: json_.containsKey('legacyGuaranteedOrderId')
            ? json_['legacyGuaranteedOrderId'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        publisherName: json_.containsKey('publisherName')
            ? json_['publisherName'] as core.String
            : null,
        readAccessInherited: json_.containsKey('readAccessInherited')
            ? json_['readAccessInherited'] as core.bool
            : null,
        readAdvertiserIds: json_.containsKey('readAdvertiserIds')
            ? (json_['readAdvertiserIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        readWriteAdvertiserId: json_.containsKey('readWriteAdvertiserId')
            ? json_['readWriteAdvertiserId'] as core.String
            : null,
        readWritePartnerId: json_.containsKey('readWritePartnerId')
            ? json_['readWritePartnerId'] as core.String
            : null,
        status: json_.containsKey('status')
            ? GuaranteedOrderStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );