BuildBatchPhase.fromJson constructor
BuildBatchPhase.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BuildBatchPhase.fromJson(Map<String, dynamic> json) {
return BuildBatchPhase(
contexts: (json['contexts'] as List?)
?.whereNotNull()
.map((e) => PhaseContext.fromJson(e as Map<String, dynamic>))
.toList(),
durationInSeconds: json['durationInSeconds'] as int?,
endTime: timeStampFromJson(json['endTime']),
phaseStatus: (json['phaseStatus'] as String?)?.toStatusType(),
phaseType: (json['phaseType'] as String?)?.toBuildBatchPhaseType(),
startTime: timeStampFromJson(json['startTime']),
);
}