toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'subject': subject,
  if (description != null) 'description': description,
  if (activeForm != null) 'activeForm': activeForm,
  'status': status.toJsonString(),
  if (owner != null) 'owner': owner,
  'blocks': blocks,
  'blockedBy': blockedBy,
  if (metadata != null) 'metadata': metadata,
  'createdAt': createdAt.toIso8601String(),
  'updatedAt': updatedAt.toIso8601String(),
};