toJson method
Convert the AccountPermissionUpdateContract object to a JSON representation.
Implementation
@override
/// Convert the [AccountPermissionUpdateContract] object to a JSON representation.
Map<String, dynamic> toJson() {
return {
"owner_address": ownerAddress.toString(),
"actives": actives.map((e) => e.toJson()).toList(),
"owner": owner.toJson(),
"witness": witness?.toJson(),
}..removeWhere((key, value) => value == null);
}