BuildSummary.fromJson constructor
BuildSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BuildSummary.fromJson(Map<String, dynamic> json) {
return BuildSummary(
arn: json['arn'] as String?,
buildStatus: (json['buildStatus'] as String?)?.toStatusType(),
primaryArtifact: json['primaryArtifact'] != null
? ResolvedArtifact.fromJson(
json['primaryArtifact'] as Map<String, dynamic>)
: null,
requestedOn: timeStampFromJson(json['requestedOn']),
secondaryArtifacts: (json['secondaryArtifacts'] as List?)
?.whereNotNull()
.map((e) => ResolvedArtifact.fromJson(e as Map<String, dynamic>))
.toList(),
);
}