toJson method
Convert the AccountCreateContract object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson({bool visible = true}) {
return {
'owner_address': ownerAddress.toAddress(visible),
'account_address': accountAddress.toAddress(visible),
'type': type?.name,
}..removeWhere((key, value) => value == null);
}