OnRampProvider class final

Describes an on-ramp provider

Inheritance

Constructors

OnRampProvider({required String id, required String name, required List<String> cryptocurrencies, required bool supportsBaseCurrencies, required bool supportsLimits, required bool supportsQuote})
Describes an on-ramp provider
const
OnRampProvider.fromJson(Map<String, dynamic> json)
Parses a OnRampProvider from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
cryptocurrencies → List<String>
List of cryptocurrencies supported by the provider
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier of the provider
final
name → String
Name of the provider
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsBaseCurrencies → bool
True, if the provider supports base currencies and can be used in the method getOnRampProviderBaseCurrencies
final
supportsLimits → bool
True, if the provider supports limits retrieval using the method getOnRampPaymentLimits
final
supportsQuote → bool
True, if the provider supports quote retrieval using the method getOnRampPaymentQuote
final

Methods

copyWith({String? id, String? name, List<String>? cryptocurrencies, bool? supportsBaseCurrencies, bool? supportsLimits, bool? supportsQuote}) → OnRampProvider
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.