Map<String, Object?> toJson() => { 'id': id, 'label': label, 'status': status.toJson(), if (!badge.isEmpty) 'badge': badge.toJson(), };