toJson method
Implementation
Map<String, dynamic> toJson() {
final type = this.type;
final auth = this.auth;
final buildStatusConfig = this.buildStatusConfig;
final buildspec = this.buildspec;
final gitCloneDepth = this.gitCloneDepth;
final gitSubmodulesConfig = this.gitSubmodulesConfig;
final insecureSsl = this.insecureSsl;
final location = this.location;
final reportBuildStatus = this.reportBuildStatus;
final sourceIdentifier = this.sourceIdentifier;
return {
'type': type.toValue(),
if (auth != null) 'auth': auth,
if (buildStatusConfig != null) 'buildStatusConfig': buildStatusConfig,
if (buildspec != null) 'buildspec': buildspec,
if (gitCloneDepth != null) 'gitCloneDepth': gitCloneDepth,
if (gitSubmodulesConfig != null)
'gitSubmodulesConfig': gitSubmodulesConfig,
if (insecureSsl != null) 'insecureSsl': insecureSsl,
if (location != null) 'location': location,
if (reportBuildStatus != null) 'reportBuildStatus': reportBuildStatus,
if (sourceIdentifier != null) 'sourceIdentifier': sourceIdentifier,
};
}