AccountResourceModel.fromJson constructor
AccountResourceModel.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AccountResourceModel.fromJson(Map<String, dynamic> json) {
return AccountResourceModel(
freeNetLimit: BigintUtils.tryParse(json["freeNetLimit"]) ?? BigInt.zero,
freeNetUsed: BigintUtils.tryParse(json["freeNetUsed"]) ?? BigInt.zero,
netLimit: BigintUtils.tryParse(json["NetLimit"]) ?? BigInt.zero,
netUsed: BigintUtils.tryParse(json["NetUsed"]) ?? BigInt.zero,
energyUsed: BigintUtils.tryParse(json["EnergyUsed"]) ?? BigInt.zero,
energyLimit: BigintUtils.tryParse(json["EnergyLimit"]) ?? BigInt.zero,
tronPowerUsed: json["tronPowerUsed"] ?? 0,
tronPowerLimit: json["tronPowerLimit"] ?? 0,
);
}