MandateSingleUse.fromJson constructor

MandateSingleUse.fromJson(
  1. Object? json
)

Implementation

factory MandateSingleUse.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return MandateSingleUse(
    amount: (map['amount'] as num).toInt(),
    currency: (map['currency'] as String),
  );
}