toJson method
Implementation
Map<String, dynamic> toJson() => {
'packageName': packageName,
'version': version,
'profile': profile,
if (artifactPath != null) 'artifactPath': artifactPath,
'configPath': configPath,
};