toJson method
Implementation
Map<String, dynamic> toJson() {
final type = this.type;
final artifactIdentifier = this.artifactIdentifier;
final encryptionDisabled = this.encryptionDisabled;
final location = this.location;
final name = this.name;
final namespaceType = this.namespaceType;
final overrideArtifactName = this.overrideArtifactName;
final packaging = this.packaging;
final path = this.path;
return {
'type': type.toValue(),
if (artifactIdentifier != null) 'artifactIdentifier': artifactIdentifier,
if (encryptionDisabled != null) 'encryptionDisabled': encryptionDisabled,
if (location != null) 'location': location,
if (name != null) 'name': name,
if (namespaceType != null) 'namespaceType': namespaceType.toValue(),
if (overrideArtifactName != null)
'overrideArtifactName': overrideArtifactName,
if (packaging != null) 'packaging': packaging.toValue(),
if (path != null) 'path': path,
};
}