toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'name'] = this.name;
  json[r'code'] = this.code;
  json[r'level'] = this.level;
  json[r'type'] = this.type;
  json[r'hp'] = this.hp;
  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'res_fire'] = this.resFire;
  json[r'res_earth'] = this.resEarth;
  json[r'res_water'] = this.resWater;
  json[r'res_air'] = this.resAir;
  json[r'critical_strike'] = this.criticalStrike;
  json[r'initiative'] = this.initiative;
  json[r'effects'] = this.effects;
  json[r'min_gold'] = this.minGold;
  json[r'max_gold'] = this.maxGold;
  json[r'drops'] = this.drops;
  return json;
}