Invoice.fromJson constructor

Invoice.fromJson(
  1. Map json_
)

Implementation

Invoice.fromJson(core.Map json_)
    : this(
        budgetInvoiceGroupingId: json_.containsKey('budgetInvoiceGroupingId')
            ? json_['budgetInvoiceGroupingId'] as core.String
            : null,
        budgetSummaries: json_.containsKey('budgetSummaries')
            ? (json_['budgetSummaries'] as core.List)
                .map((value) => BudgetSummary.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,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        dueDate: json_.containsKey('dueDate')
            ? Date.fromJson(
                json_['dueDate'] as core.Map<core.String, core.dynamic>)
            : null,
        invoiceId: json_.containsKey('invoiceId')
            ? json_['invoiceId'] as core.String
            : null,
        invoiceType: json_.containsKey('invoiceType')
            ? json_['invoiceType'] as core.String
            : null,
        issueDate: json_.containsKey('issueDate')
            ? Date.fromJson(
                json_['issueDate'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nonBudgetMicros: json_.containsKey('nonBudgetMicros')
            ? json_['nonBudgetMicros'] 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,
        serviceDateRange: json_.containsKey('serviceDateRange')
            ? DateRange.fromJson(json_['serviceDateRange']
                as core.Map<core.String, core.dynamic>)
            : 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,
      );