toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'code'] = this.code;
json[r'npc'] = this.npc;
json[r'currency'] = this.currency;
if (this.buyPrice != null) {
json[r'buy_price'] = this.buyPrice;
} else {
json[r'buy_price'] = null;
}
if (this.sellPrice != null) {
json[r'sell_price'] = this.sellPrice;
} else {
json[r'sell_price'] = null;
}
return json;
}