toJson method
Implementation
Map<String, dynamic> toJson() => {
'order': order,
'type': type.name,
'description': description,
if (packageName != null) 'packageName': packageName,
if (targetVersion != null) 'targetVersion': targetVersion,
if (codeChanges != null)
'codeChanges': codeChanges!.map((e) => e.toJson()).toList(),
if (command != null) 'command': command,
};