Job.fromJson constructor

Job.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Job.fromJson(Map<String, dynamic> json) {
  return Job(
    steps: (json['steps'] as List)
        .whereNotNull()
        .map((e) => Step.fromJson(e as Map<String, dynamic>))
        .toList(),
    summary: JobSummary.fromJson(json['summary'] as Map<String, dynamic>),
  );
}