toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.title != null) {
    data['title'] = this.title!.toJson();
  }
  if (this.taxStatus != null) {
    data['tax_status'] = this.taxStatus!.toJson();
  }
  if (this.cost != null) {
    data['cost'] = this.cost!.toJson();
  }
  if (this.classCosts != null) {
    data['class_costs'] = this.classCosts!.toJson();
  }
  if (this.classCost92 != null) {
    data['class_cost_92'] = this.classCost92!.toJson();
  }
  if (this.classCost91 != null) {
    data['class_cost_91'] = this.classCost91!.toJson();
  }
  if (this.noClassCost != null) {
    data['no_class_cost'] = this.noClassCost!.toJson();
  }
  if (this.type != null) {
    data['type'] = this.type!.toJson();
  }
  return data;
}