toJson method
Implementation
Map<String, dynamic> toJson() {
final name = this.name;
final roleArn = this.roleArn;
final stages = this.stages;
final artifactStore = this.artifactStore;
final artifactStores = this.artifactStores;
final version = this.version;
return {
'name': name,
'roleArn': roleArn,
'stages': stages,
if (artifactStore != null) 'artifactStore': artifactStore,
if (artifactStores != null) 'artifactStores': artifactStores,
if (version != null) 'version': version,
};
}