VoidedPurchasesListResponse.fromJson constructor

VoidedPurchasesListResponse.fromJson(
  1. Map json_
)

Implementation

VoidedPurchasesListResponse.fromJson(core.Map json_)
    : this(
        pageInfo: json_.containsKey('pageInfo')
            ? PageInfo.fromJson(
                json_['pageInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        tokenPagination: json_.containsKey('tokenPagination')
            ? TokenPagination.fromJson(json_['tokenPagination']
                as core.Map<core.String, core.dynamic>)
            : null,
        voidedPurchases: json_.containsKey('voidedPurchases')
            ? (json_['voidedPurchases'] as core.List)
                .map((value) => VoidedPurchase.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );