toInsertJson method

Map<String, dynamic> toInsertJson()

Implementation

Map<String, dynamic> toInsertJson() {
  return {
    'org_id': orgId,
    'domain_id': domainId,
    if (curriculumLevelId != null) 'curriculum_level_id': curriculumLevelId,
    if (teamId != null) 'team_id': teamId,
    if (userId != null) 'user_id': userId,
    'assigned_by': assignedBy,
    if (dueDate != null) 'due_date': dueDate!.toIso8601String(),
  };
}