SendTonCenterApiRequest class
Sends a request to the TON Center API and returns its response in JSON format Returns Text
- Inheritance
-
- Object
- TdFunction
- SendTonCenterApiRequest
- Available extensions
- Annotations
-
- @immutable
Constructors
- SendTonCenterApiRequest({required String endpoint, required TonCenterApiRequestType type})
-
const
Properties
- endpoint → String
-
endpoint The path of the requested endpoint. See
https://toncenter.com/api/v3/index.html for the list of supported
endpoints
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TonCenterApiRequestType
-
type Type of the request
final
Methods
-
copyWith(
{String? endpoint, TonCenterApiRequestType? type}) → SendTonCenterApiRequest -
Available on SendTonCenterApiRequest, provided by the SendTonCenterApiRequestExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- constructor → const String