toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'price'] = this.price;
  if (this.priceCurrency != null) {
    json[r'price_currency'] = this.priceCurrency;
  } else {
    json[r'price_currency'] = null;
  }
  return json;
}