toJson method

  1. @override
Map<String, dynamic> toJson()
override

Convert the UpdateSettingContract object to a JSON representation.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "owner_address": ownerAddress.toString(),
    "contract_address": contractAddress.toString(),
    "consume_user_resource_percent": consumeUserResourcePercent?.toString(),
  }..removeWhere((key, value) => value == null);
}