toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'key': key,
'value': value,
if (type != null) 'type': type,
if (projectId != null) 'projectId': projectId,
if (project != null) 'project': project!.toJson(),
};
}