toJson method

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

Convert the TronKey object to a JSON representation.

Implementation

@override
Map<String, dynamic> toJson({bool visible = true}) {
  return {'address': address.toAddress(visible), 'weight': weight};
}