toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'hex_bytes': hexBytes,
'address': address,
'account_identifier': accountIdentifier?.toJson(),
'signature_type': signatureType,
}..removeWhere((key, value) => value == null);
}