toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{
    "sender": sender,
    "sequence_number": sequenceNumber,
    "max_gas_amount": maxGasAmount,
    "gas_unit_price": gasUnitPrice,
    "expiration_timestamp_secs": expirationTimestampSecs,
    "payload": payload.toJson()
  };
  if (secondarySigners != null) {
    data["secondary_signers"] = secondarySigners;
  }
  return data;
}