toMap method
Not identical with PaymayaAmount.
This was intended for SinglePayment method which uses
the value as String
instead of num
Converts SinglePaymentAmount to Map
Implementation
Map<String, dynamic> toMap() {
return {
'currency': currency ?? 'PHP',
'value': value,
'metadata': metadata,
};
}