toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (priceId != null) {
_json[r'price_id'] = priceId;
}
if (total != null) {
_json[r'total'] = total;
}
if (quantity != null) {
_json[r'quantity'] = quantity;
}
if (pricePerUnit != null) {
_json[r'price_per_unit'] = pricePerUnit;
}
if (description != null) {
_json[r'description'] = description;
}
_json[r'metadata'] = metadata;
return _json;
}