ChargeCreateOptionsTransferData.fromJson constructor

ChargeCreateOptionsTransferData.fromJson(
  1. Object? json
)

Implementation

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