toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.assetId != null) {
    json[r'asset_id'] = this.assetId;
  } else {
    json[r'asset_id'] = null;
  }
  if (this.userId != null) {
    json[r'user_id'] = this.userId;
  } else {
    json[r'user_id'] = null;
  }
  if (this.companyId != null) {
    json[r'company_id'] = this.companyId;
  } else {
    json[r'company_id'] = null;
  }
  if (this.notes != null) {
    json[r'notes'] = this.notes;
  } else {
    json[r'notes'] = null;
  }
  if (this.category != null) {
    json[r'category'] = this.category;
  } else {
    json[r'category'] = null;
  }
  if (this.priority != null) {
    json[r'priority'] = this.priority;
  } else {
    json[r'priority'] = null;
  }
  return json;
}