toJSON method

Map<String, String> toJSON()

Implementation

Map<String, String> toJSON() {
  final map = <String, String>{};
  if (paymentId != null) map['payment_id'] = paymentId!;
  if (userId != null) map['user_id'] = userId!;
  return map;
}