toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'continuationToken': continuationToken == null ? null : continuationToken,
    'errMsg': errMsg == null ? null : errMsg,
    'inAppPurchaseDataList': inAppPurchaseDataList == null
        ? null
        : List<dynamic>.from(
            inAppPurchaseDataList!.map((InAppPurchaseData x) => x),
          ),
    'inAppSignature': inAppSignature == null
        ? null
        : List<dynamic>.from(inAppSignature!.map((String x) => x)),
    'itemList': itemList == null
        ? null
        : List<dynamic>.from(itemList!.map((String x) => x)),
    'returnCode': returnCode == null ? null : returnCode,
    'status': status == null ? null : status!.toMap(),
    'placedInappPurchaseDataList': placedInappPurchaseDataList == null
        ? null
        : List<String>.from(
            placedInappPurchaseDataList!.map((String x) => x),
          ),
    'placedInappSignatureList': placedInappSignatureList == null
        ? null
        : List<String>.from(placedInappSignatureList!.map((String x) => x)),
    'signatureAlgorithm':
        signatureAlgorithm == null ? null : signatureAlgorithm,
  };
}