TEthSendTransactionBody.fromJson constructor
TEthSendTransactionBody.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TEthSendTransactionBody.fromJson(Map<String, dynamic> json) {
final _timestampMs = json['timestampMs'] as String?;
final _organizationId = json['organizationId'] as String?;
final _from = json['from'] as String;
final _sponsor = json['sponsor'] as bool?;
final _caip2 = json['caip2'] as String;
final _to = json['to'] as String;
final _value = json['value'] as String?;
final _data = json['data'] as String?;
final _nonce = json['nonce'] as String?;
final _gasLimit = json['gasLimit'] as String?;
final _maxFeePerGas = json['maxFeePerGas'] as String?;
final _maxPriorityFeePerGas = json['maxPriorityFeePerGas'] as String?;
final _gasStationNonce = json['gasStationNonce'] as String?;
return TEthSendTransactionBody(
timestampMs: _timestampMs,
organizationId: _organizationId,
from: _from,
sponsor: _sponsor,
caip2: _caip2,
to: _to,
value: _value,
data: _data,
nonce: _nonce,
gasLimit: _gasLimit,
maxFeePerGas: _maxFeePerGas,
maxPriorityFeePerGas: _maxPriorityFeePerGas,
gasStationNonce: _gasStationNonce,
);
}