BuildGroup.fromJson constructor
BuildGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BuildGroup.fromJson(Map<String, dynamic> json) {
return BuildGroup(
currentBuildSummary: json['currentBuildSummary'] != null
? BuildSummary.fromJson(
json['currentBuildSummary'] as Map<String, dynamic>)
: null,
dependsOn: (json['dependsOn'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
identifier: json['identifier'] as String?,
ignoreFailure: json['ignoreFailure'] as bool?,
priorBuildSummaryList: (json['priorBuildSummaryList'] as List?)
?.whereNotNull()
.map((e) => BuildSummary.fromJson(e as Map<String, dynamic>))
.toList(),
);
}