toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
final l$title = title;
result$data['title'] = l$title;
if (_$data.containsKey('description')) {
final l$description = description;
result$data['description'] = l$description;
}
if (_$data.containsKey('dueDate')) {
final l$dueDate = dueDate;
result$data['dueDate'] =
l$dueDate == null ? null : dateTimeToJson(l$dueDate);
}
if (_$data.containsKey('archived')) {
final l$archived = archived;
result$data['archived'] = l$archived;
}
if (_$data.containsKey('priority')) {
final l$priority = priority;
result$data['priority'] = l$priority == null
? null
: toJson$Enum$BoardCardPriorityEnum(l$priority);
}
if (_$data.containsKey('tags')) {
final l$tags = tags;
result$data['tags'] = l$tags?.map((e) => e).toList();
}
if (_$data.containsKey('pictures')) {
final l$pictures = pictures;
result$data['pictures'] = l$pictures?.map((e) => e.toJson()).toList();
}
if (_$data.containsKey('project')) {
final l$project = project;
result$data['project'] = l$project;
}
if (_$data.containsKey('barcode')) {
final l$barcode = barcode;
result$data['barcode'] = l$barcode;
}
if (_$data.containsKey('tasks')) {
final l$tasks = tasks;
result$data['tasks'] = l$tasks?.map((e) => e.toJson()).toList();
}
if (_$data.containsKey('labels')) {
final l$labels = labels;
result$data['labels'] = l$labels?.map((e) => e).toList();
}
if (_$data.containsKey('rank')) {
final l$rank = rank;
result$data['rank'] = l$rank;
}
if (_$data.containsKey('assignedTo')) {
final l$assignedTo = assignedTo;
result$data['assignedTo'] = l$assignedTo?.map((e) => e).toList();
}
if (_$data.containsKey('budget')) {
final l$budget = budget;
result$data['budget'] = l$budget;
}
if (_$data.containsKey('customer')) {
final l$customer = customer;
result$data['customer'] = l$customer;
}
if (_$data.containsKey('procedure')) {
final l$procedure = procedure;
result$data['procedure'] = l$procedure?.map((e) => e.toJson()).toList();
}
if (_$data.containsKey('attachments')) {
final l$attachments = attachments;
result$data['attachments'] = l$attachments?.map((e) => e).toList();
}
final l$target = target;
result$data['target'] = l$target.toJson();
return result$data;
}