toJson method
Serializes the issue. Used by prompt rendering and observability.
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'id': id,
'identifier': identifier,
'title': title,
'description': description,
'priority': priority,
'state': state,
'branch_name': branchName,
'url': url,
'labels': labels,
'blocked_by': blockedBy.map((b) => b.toJson()).toList(growable: false),
'created_at': createdAt?.toIso8601String(),
'updated_at': updatedAt?.toIso8601String(),
};