PaymentLinksResourceTransferData.fromJson constructor

PaymentLinksResourceTransferData.fromJson(
  1. Object? json
)

Implementation

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