toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.amount != null) {
    json[r'amount'] = this.amount;
  } else {
    json[r'amount'] = null;
  }
  if (this.quantity != null) {
    json[r'quantity'] = this.quantity;
  } else {
    json[r'quantity'] = null;
  }
  if (this.serviceType != null) {
    json[r'serviceType'] = this.serviceType;
  } else {
    json[r'serviceType'] = null;
  }
  if (this.category != null) {
    json[r'category'] = this.category;
  } else {
    json[r'category'] = null;
  }
  return json;
}