Project.fromJson constructor

Project.fromJson(
  1. Map json_
)

Implementation

Project.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        audienceAgeGroup: json_.containsKey('audienceAgeGroup')
            ? json_['audienceAgeGroup'] as core.String
            : null,
        audienceGender: json_.containsKey('audienceGender')
            ? json_['audienceGender'] as core.String
            : null,
        budget: json_.containsKey('budget')
            ? json_['budget'] as core.String
            : null,
        clientBillingCode: json_.containsKey('clientBillingCode')
            ? json_['clientBillingCode'] as core.String
            : null,
        clientName: json_.containsKey('clientName')
            ? json_['clientName'] as core.String
            : null,
        endDate: json_.containsKey('endDate')
            ? core.DateTime.parse(json_['endDate'] as core.String)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        lastModifiedInfo: json_.containsKey('lastModifiedInfo')
            ? LastModifiedInfo.fromJson(json_['lastModifiedInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        overview: json_.containsKey('overview')
            ? json_['overview'] as core.String
            : null,
        startDate: json_.containsKey('startDate')
            ? core.DateTime.parse(json_['startDate'] as core.String)
            : null,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
        targetClicks: json_.containsKey('targetClicks')
            ? json_['targetClicks'] as core.String
            : null,
        targetConversions: json_.containsKey('targetConversions')
            ? json_['targetConversions'] as core.String
            : null,
        targetCpaNanos: json_.containsKey('targetCpaNanos')
            ? json_['targetCpaNanos'] as core.String
            : null,
        targetCpcNanos: json_.containsKey('targetCpcNanos')
            ? json_['targetCpcNanos'] as core.String
            : null,
        targetCpmActiveViewNanos:
            json_.containsKey('targetCpmActiveViewNanos')
                ? json_['targetCpmActiveViewNanos'] as core.String
                : null,
        targetCpmNanos: json_.containsKey('targetCpmNanos')
            ? json_['targetCpmNanos'] as core.String
            : null,
        targetImpressions: json_.containsKey('targetImpressions')
            ? json_['targetImpressions'] as core.String
            : null,
      );