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'subtype'] = this.subtype;
    json[r'description'] = this.description;
    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;
}