CampaignBudget.fromJson constructor

CampaignBudget.fromJson(
  1. Map json_
)

Implementation

CampaignBudget.fromJson(core.Map json_)
    : this(
        budgetAmountMicros: json_.containsKey('budgetAmountMicros')
            ? json_['budgetAmountMicros'] as core.String
            : null,
        budgetId: json_.containsKey('budgetId')
            ? json_['budgetId'] as core.String
            : null,
        budgetUnit: json_.containsKey('budgetUnit')
            ? json_['budgetUnit'] as core.String
            : null,
        dateRange: json_.containsKey('dateRange')
            ? DateRange.fromJson(
                json_['dateRange'] as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        externalBudgetId: json_.containsKey('externalBudgetId')
            ? json_['externalBudgetId'] as core.String
            : null,
        externalBudgetSource: json_.containsKey('externalBudgetSource')
            ? json_['externalBudgetSource'] as core.String
            : null,
        invoiceGroupingId: json_.containsKey('invoiceGroupingId')
            ? json_['invoiceGroupingId'] as core.String
            : null,
        prismaConfig: json_.containsKey('prismaConfig')
            ? PrismaConfig.fromJson(
                json_['prismaConfig'] as core.Map<core.String, core.dynamic>)
            : null,
      );