PurchaseDetails.fromJson constructor

PurchaseDetails.fromJson(
  1. Map json_
)

Implementation

PurchaseDetails.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        confirmationCode: json_.containsKey('confirmationCode')
            ? json_['confirmationCode'] as core.String
            : null,
        purchaseDateTime: json_.containsKey('purchaseDateTime')
            ? json_['purchaseDateTime'] as core.String
            : null,
        purchaseReceiptNumber: json_.containsKey('purchaseReceiptNumber')
            ? json_['purchaseReceiptNumber'] as core.String
            : null,
        ticketCost: json_.containsKey('ticketCost')
            ? TicketCost.fromJson(
                json_['ticketCost'] as core.Map<core.String, core.dynamic>)
            : null,
      );