toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data =  Map<String, dynamic>();
  data['item'] = this.item;
  data['relative_physical_stats'] = this.relativePhysicalStats;
  data['turn_upside_down'] = this.turnUpsideDown;
  data['gender'] = this.gender;
  data['min_happiness'] = this.minHappiness;
  data['party_type'] = this.partyType;
  data['held_item'] = this.heldItem;
  data['known_move'] = this.knownMove;
  data['min_beauty'] = this.minBeauty;
  data['trade_species'] = this.tradeSpecies;
  if (this.trigger != null) {
    data['trigger'] = this.trigger!.toJson();
  }
  data['needs_overworld_rain'] = this.needsOverworldRain;
  data['party_species'] = this.partySpecies;
  data['min_affection'] = this.minAffection;
  data['known_move_type'] = this.knownMoveType;
  data['time_of_day'] = this.timeOfDay;
  data['location'] = this.location;
  data['min_level'] = this.minLevel;
  return data;
}