ConnectCollectionTransfer.fromJson constructor

ConnectCollectionTransfer.fromJson(
  1. Object? json
)

Implementation

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