RemarketingAudience.fromJson constructor

RemarketingAudience.fromJson(
  1. Map json_
)

Implementation

RemarketingAudience.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        audienceDefinition: json_.containsKey('audienceDefinition')
            ? RemarketingAudienceAudienceDefinition.fromJson(
                json_['audienceDefinition']
                    as core.Map<core.String, core.dynamic>)
            : null,
        audienceType: json_.containsKey('audienceType')
            ? json_['audienceType'] as core.String
            : null,
        created: json_.containsKey('created')
            ? core.DateTime.parse(json_['created'] as core.String)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        internalWebPropertyId: json_.containsKey('internalWebPropertyId')
            ? json_['internalWebPropertyId'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        linkedAdAccounts: json_.containsKey('linkedAdAccounts')
            ? (json_['linkedAdAccounts'] as core.List)
                .map((value) => LinkedForeignAccount.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        linkedViews: json_.containsKey('linkedViews')
            ? (json_['linkedViews'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        stateBasedAudienceDefinition:
            json_.containsKey('stateBasedAudienceDefinition')
                ? RemarketingAudienceStateBasedAudienceDefinition.fromJson(
                    json_['stateBasedAudienceDefinition']
                        as core.Map<core.String, core.dynamic>)
                : null,
        updated: json_.containsKey('updated')
            ? core.DateTime.parse(json_['updated'] as core.String)
            : null,
        webPropertyId: json_.containsKey('webPropertyId')
            ? json_['webPropertyId'] as core.String
            : null,
      );