toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['PaymentType'] = paymentType;
  data['SaveToken'] = saveToken;
  if (card != null) {
    data['Card'] = card!.toJson();
  }
  data['Token'] = token;
  data['Bypass3DS'] = bypass3DS;
  return data;
}