SinglePaymentAmount.fromJson constructor

SinglePaymentAmount.fromJson(
  1. String source
)

Not identical with PaymayaAmount.

This was intended for SinglePayment method which uses the value as String instead of num Converts String to SinglePaymentAmount

Implementation

factory SinglePaymentAmount.fromJson(String source) =>
    SinglePaymentAmount.fromMap(json.decode(source));