Step.fromJson constructor
Implementation
factory Step.fromJson(Map<String, dynamic> json) {
return Step(
endTime: nonNullableTimeStampFromJson(json['endTime'] as Object),
startTime: nonNullableTimeStampFromJson(json['startTime'] as Object),
status: (json['status'] as String).toJobStatus(),
stepName: json['stepName'] as String,
artifactsUrl: json['artifactsUrl'] as String?,
context: json['context'] as String?,
logUrl: json['logUrl'] as String?,
screenshots: (json['screenshots'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
statusReason: json['statusReason'] as String?,
testArtifactsUrl: json['testArtifactsUrl'] as String?,
testConfigUrl: json['testConfigUrl'] as String?,
);
}