toJson method
Implementation
Map<String, dynamic> toJson() => {
'categoryKey': key,
'label': label,
if (parentKey != null) 'parentKey': parentKey,
if (description != null) 'description': description,
if (status != null) 'status': status,
if (deprecatedFor != null) 'deprecatedFor': deprecatedFor,
if (updatedAt != null) 'updatedAt': updatedAt!.toIso8601String(),
};