toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (timestampMs != null) {
    _json['timestampMs'] = timestampMs;
  }
  if (organizationId != null) {
    _json['organizationId'] = organizationId;
  }
  _json['from'] = from;
  if (sponsor != null) {
    _json['sponsor'] = sponsor;
  }
  _json['caip2'] = caip2;
  _json['to'] = to;
  if (value != null) {
    _json['value'] = value;
  }
  if (data != null) {
    _json['data'] = data;
  }
  if (nonce != null) {
    _json['nonce'] = nonce;
  }
  if (gasLimit != null) {
    _json['gasLimit'] = gasLimit;
  }
  if (maxFeePerGas != null) {
    _json['maxFeePerGas'] = maxFeePerGas;
  }
  if (maxPriorityFeePerGas != null) {
    _json['maxPriorityFeePerGas'] = maxPriorityFeePerGas;
  }
  if (gasStationNonce != null) {
    _json['gasStationNonce'] = gasStationNonce;
  }
  return _json;
}