toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  final map = <String, dynamic>{
    'serviceMode': serviceMode.toWire(),
    'requestId': requestId,
    'pspMode': pspMode.toWire(),
  };
  if (pspPackage != null) map['pspPackage'] = pspPackage;
  if (upiIntentUri != null) map['upiIntentUri'] = upiIntentUri;
  if (logoUrl != null) map['logoUrl'] = logoUrl;
  if (loaderColor != null) map['loaderColor'] = loaderColor;
  return map;
}