toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.skill != null) {
    json[r'skill'] = this.skill;
  } else {
    json[r'skill'] = null;
  }
  if (this.level != null) {
    json[r'level'] = this.level;
  } else {
    json[r'level'] = null;
  }
  json[r'items'] = this.items;
  if (this.quantity != null) {
    json[r'quantity'] = this.quantity;
  } else {
    json[r'quantity'] = null;
  }
  return json;
}