Invoice.fromJson constructor

Invoice.fromJson(
  1. Map json_
)

Implementation

Invoice.fromJson(core.Map json_)
    : this(
        campaignSummaries: json_.containsKey('campaign_summaries')
            ? (json_['campaign_summaries'] as core.List)
                .map((value) => CampaignSummary.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        correctedInvoiceId: json_.containsKey('correctedInvoiceId')
            ? json_['correctedInvoiceId'] as core.String
            : null,
        currencyCode: json_.containsKey('currencyCode')
            ? json_['currencyCode'] as core.String
            : null,
        dueDate: json_.containsKey('dueDate')
            ? json_['dueDate'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        invoiceType: json_.containsKey('invoiceType')
            ? json_['invoiceType'] as core.String
            : null,
        issueDate: json_.containsKey('issueDate')
            ? json_['issueDate'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        paymentsAccountId: json_.containsKey('paymentsAccountId')
            ? json_['paymentsAccountId'] as core.String
            : null,
        paymentsProfileId: json_.containsKey('paymentsProfileId')
            ? json_['paymentsProfileId'] as core.String
            : null,
        pdfUrl: json_.containsKey('pdfUrl')
            ? json_['pdfUrl'] as core.String
            : null,
        purchaseOrderNumber: json_.containsKey('purchaseOrderNumber')
            ? json_['purchaseOrderNumber'] as core.String
            : null,
        replacedInvoiceIds: json_.containsKey('replacedInvoiceIds')
            ? (json_['replacedInvoiceIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        serviceEndDate: json_.containsKey('serviceEndDate')
            ? json_['serviceEndDate'] as core.String
            : null,
        serviceStartDate: json_.containsKey('serviceStartDate')
            ? json_['serviceStartDate'] as core.String
            : null,
        subtotalAmountMicros: json_.containsKey('subtotalAmountMicros')
            ? json_['subtotalAmountMicros'] as core.String
            : null,
        totalAmountMicros: json_.containsKey('totalAmountMicros')
            ? json_['totalAmountMicros'] as core.String
            : null,
        totalTaxAmountMicros: json_.containsKey('totalTaxAmountMicros')
            ? json_['totalTaxAmountMicros'] as core.String
            : null,
      );