toJson method

Map<String, dynamic> toJson()

Convert the MessageHeader instance to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'numRequiredSignatures': numRequiredSignatures,
    'numReadonlySignedAccounts': numReadonlySignedAccounts,
    'numReadonlyUnsignedAccounts': numReadonlyUnsignedAccounts,
  };
}