toJson method

  1. @override
Map<String, dynamic> toJson({
  1. bool visible = true,
})
override

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);
}