UltraOrderRequest class
Model for UltraOrderRequest, Dart equivalent of the Python UltraOrderRequest.
Used to create an order request for the Jupiter Ultra API.
- Annotations
-
- @JsonSerializable.new(includeIfNull: false, fieldRename: FieldRename.snake)
Constructors
- UltraOrderRequest({required String inputMint, required String outputMint, required int amount, String? taker, String? referralAccount, int? referralFee})
-
UltraOrderRequest.fromJson(Map<
String, dynamic> json) -
Creates an instance from a JSON map.
factory
Properties
- amount → int
-
The amount of input tokens to swap.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputMint → String
-
The mint address of the input token.
final
- outputMint → String
-
The mint address of the output token.
final
- referralAccount → String?
-
The referral account public key (optional).
final
- referralFee → int?
-
The referral fee in basis points (optional).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- taker → String?
-
The taker public key (optional).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCamelCaseJson(
) → Map< String, dynamic> - Converts this object to a JSON map with camelCase keys for API requests.
-
toJson(
) → Map< String, dynamic> - Converts this object to a JSON map with camelCase keys for API requests.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited