UltraOrderRequest class
Model for UltraOrderRequest, Dart equivalent of the Python UltraOrderRequest.
Used to create an order request for the Jupiter Ultra API.
- Annotations
-
- @JsonSerializable(includeIfNull: false, fieldRename: FieldRename.snake)
Constructors
- UltraOrderRequest.new({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
-
snakeToCamel(
String s) → String -
Convert snake_case to camelCase.
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
-
validate(
) → void - Validate the model.
-
validateBase64(
String field, String value) → void -
Validate base64 format.
inherited
-
validateBasisPoints(
String field, int value) → void -
Validate basis points (0-10000).
inherited
-
validateEnum<
T> (String field, T value, List< T> allowedValues) → void -
Validate enum value.
inherited
-
validateRange(
String field, num value, {num? min, num? max}) → void -
Validate a numeric range.
inherited
-
validateRequired(
String field, dynamic value) → void -
Validate that a value is not null.
inherited
-
validateSolanaAddress(
String field, String value) → void -
Validate that a string matches a Solana address format.
inherited
-
validateStringLength(
String field, String value, {int? minLength, int? maxLength}) → void -
Validate string length.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited