toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.price != null) {
    json[r'price'] = this.price;
  } else {
    json[r'price'] = null;
  }
  if (this.approxPrice != null) {
    json[r'approxPrice'] = this.approxPrice;
  } else {
    json[r'approxPrice'] = null;
  }
  if (this.includedInTotal != null) {
    json[r'includedInTotal'] = this.includedInTotal;
  } else {
    json[r'includedInTotal'] = null;
  }
  if (this.payableAt != null) {
    json[r'payableAt'] = this.payableAt;
  } else {
    json[r'payableAt'] = null;
  }
  return json;
}