toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = {};
  data['payerId'] = payerId;
  data['orderId'] = orderId;
  if (payer != null) {
    data['payer'] = payer!.toJson();
  }
  if (cart != null) {
    data['cart'] = cart!.toJson();
  }
  return data;
}