TronAccountResourceModel.fromJson constructor

TronAccountResourceModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TronAccountResourceModel.fromJson(Map<String, dynamic> json) {
  return TronAccountResourceModel._(
    energyWindowSize: json['energy_window_size'],
    delegatedFrozenV2BalanceForEnergy:
        BigintUtils.tryParse(json['delegated_frozenV2_balance_for_energy']),
    energyWindowOptimized: json['energy_window_optimized'],
  );
}