PaymentIntentTransferData.fromJson constructor

PaymentIntentTransferData.fromJson(
  1. Object? json
)

Implementation

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