serialize method

  1. @override
Map<String, dynamic> serialize()
override

Serializes the layout.

Implementation

@override
Map<String, dynamic> serialize() {
  return {
    "numSignatures": numSignatures,
    "signatureOffset": signatureOffset,
    "signatureInstructionIndex": signatureInstructionIndex,
    "ethAddressOffset": ethAddressOffset,
    "ethAddressInstructionIndex": ethAddressInstructionIndex,
    "messageDataOffset": messageDataOffset,
    "messageDataSize": messageDataSize,
    "messageInstructionIndex": messageInstructionIndex,
    "ethAddress": ethAddress.toBytes(),
    "signature": signature,
    "recoveryId": recoveryId
  };
}