toJson method
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'subtype'] = this.subtype;
json[r'description'] = this.description;
json[r'conditions'] = this.conditions;
json[r'effects'] = this.effects;
if (this.craft != null) {
json[r'craft'] = this.craft;
} else {
json[r'craft'] = null;
}
json[r'tradeable'] = this.tradeable;
return json;
}