ProjectSource.fromJson constructor
ProjectSource.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ProjectSource.fromJson(Map<String, dynamic> json) {
return ProjectSource(
type: (json['type'] as String).toSourceType(),
auth: json['auth'] != null
? SourceAuth.fromJson(json['auth'] as Map<String, dynamic>)
: null,
buildStatusConfig: json['buildStatusConfig'] != null
? BuildStatusConfig.fromJson(
json['buildStatusConfig'] as Map<String, dynamic>)
: null,
buildspec: json['buildspec'] as String?,
gitCloneDepth: json['gitCloneDepth'] as int?,
gitSubmodulesConfig: json['gitSubmodulesConfig'] != null
? GitSubmodulesConfig.fromJson(
json['gitSubmodulesConfig'] as Map<String, dynamic>)
: null,
insecureSsl: json['insecureSsl'] as bool?,
location: json['location'] as String?,
reportBuildStatus: json['reportBuildStatus'] as bool?,
sourceIdentifier: json['sourceIdentifier'] as String?,
);
}