toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'account'] = this.account;
json[r'skin'] = this.skin;
json[r'level'] = this.level;
json[r'xp'] = this.xp;
json[r'max_xp'] = this.maxXp;
json[r'gold'] = this.gold;
json[r'speed'] = this.speed;
json[r'mining_level'] = this.miningLevel;
json[r'mining_xp'] = this.miningXp;
json[r'mining_max_xp'] = this.miningMaxXp;
json[r'woodcutting_level'] = this.woodcuttingLevel;
json[r'woodcutting_xp'] = this.woodcuttingXp;
json[r'woodcutting_max_xp'] = this.woodcuttingMaxXp;
json[r'fishing_level'] = this.fishingLevel;
json[r'fishing_xp'] = this.fishingXp;
json[r'fishing_max_xp'] = this.fishingMaxXp;
json[r'weaponcrafting_level'] = this.weaponcraftingLevel;
json[r'weaponcrafting_xp'] = this.weaponcraftingXp;
json[r'weaponcrafting_max_xp'] = this.weaponcraftingMaxXp;
json[r'gearcrafting_level'] = this.gearcraftingLevel;
json[r'gearcrafting_xp'] = this.gearcraftingXp;
json[r'gearcrafting_max_xp'] = this.gearcraftingMaxXp;
json[r'jewelrycrafting_level'] = this.jewelrycraftingLevel;
json[r'jewelrycrafting_xp'] = this.jewelrycraftingXp;
json[r'jewelrycrafting_max_xp'] = this.jewelrycraftingMaxXp;
json[r'cooking_level'] = this.cookingLevel;
json[r'cooking_xp'] = this.cookingXp;
json[r'cooking_max_xp'] = this.cookingMaxXp;
json[r'alchemy_level'] = this.alchemyLevel;
json[r'alchemy_xp'] = this.alchemyXp;
json[r'alchemy_max_xp'] = this.alchemyMaxXp;
json[r'hp'] = this.hp;
json[r'max_hp'] = this.maxHp;
json[r'haste'] = this.haste;
json[r'critical_strike'] = this.criticalStrike;
json[r'wisdom'] = this.wisdom;
json[r'prospecting'] = this.prospecting;
json[r'initiative'] = this.initiative;
json[r'threat'] = this.threat;
json[r'attack_fire'] = this.attackFire;
json[r'attack_earth'] = this.attackEarth;
json[r'attack_water'] = this.attackWater;
json[r'attack_air'] = this.attackAir;
json[r'dmg'] = this.dmg;
json[r'dmg_fire'] = this.dmgFire;
json[r'dmg_earth'] = this.dmgEarth;
json[r'dmg_water'] = this.dmgWater;
json[r'dmg_air'] = this.dmgAir;
json[r'res_fire'] = this.resFire;
json[r'res_earth'] = this.resEarth;
json[r'res_water'] = this.resWater;
json[r'res_air'] = this.resAir;
json[r'effects'] = this.effects;
json[r'x'] = this.x;
json[r'y'] = this.y;
json[r'layer'] = this.layer;
json[r'map_id'] = this.mapId;
json[r'cooldown'] = this.cooldown;
if (this.cooldownExpiration != null) {
json[r'cooldown_expiration'] =
this.cooldownExpiration!.toUtc().toIso8601String();
} else {
json[r'cooldown_expiration'] = null;
}
json[r'weapon_slot'] = this.weaponSlot;
json[r'rune_slot'] = this.runeSlot;
json[r'shield_slot'] = this.shieldSlot;
json[r'helmet_slot'] = this.helmetSlot;
json[r'body_armor_slot'] = this.bodyArmorSlot;
json[r'leg_armor_slot'] = this.legArmorSlot;
json[r'boots_slot'] = this.bootsSlot;
json[r'ring1_slot'] = this.ring1Slot;
json[r'ring2_slot'] = this.ring2Slot;
json[r'amulet_slot'] = this.amuletSlot;
json[r'artifact1_slot'] = this.artifact1Slot;
json[r'artifact2_slot'] = this.artifact2Slot;
json[r'artifact3_slot'] = this.artifact3Slot;
json[r'utility1_slot'] = this.utility1Slot;
json[r'utility1_slot_quantity'] = this.utility1SlotQuantity;
json[r'utility2_slot'] = this.utility2Slot;
json[r'utility2_slot_quantity'] = this.utility2SlotQuantity;
json[r'bag_slot'] = this.bagSlot;
json[r'task'] = this.task;
json[r'task_type'] = this.taskType;
json[r'task_progress'] = this.taskProgress;
json[r'task_total'] = this.taskTotal;
json[r'inventory_max_items'] = this.inventoryMaxItems;
json[r'inventory'] = this.inventory;
return json;
}