toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    if (embedded != null) r'_embedded': embedded,
    if (links != null) r'_links': links,
    if (archived != null) r'archived': archived,
    if (createdAt != null) r'createdAt': createdAt!.toUtc().toIso8601String(),
    if (description != null) r'description': description,
    if (dueBy != null) r'dueBy': dueBy!.toUtc().toIso8601String(),
    if (id != null) r'id': id,
    if (identificationNumber != null)
      r'identificationNumber': identificationNumber,
    if (phase != null) r'phase': phase,
    if (priority != null) r'priority': priority,
    if (reference != null) r'reference': reference,
    if (scheduledAt != null)
      r'scheduledAt': scheduledAt!.toUtc().toIso8601String(),
    if (tags != null) r'tags': tags,
    if (type != null) r'type': type,
    if (updatedAt != null) r'updatedAt': updatedAt!.toUtc().toIso8601String(),
  };
}