BatchGetJobsResponse.fromJson constructor

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

Implementation

factory BatchGetJobsResponse.fromJson(Map<String, dynamic> json) {
  return BatchGetJobsResponse(
    jobs: (json['Jobs'] as List?)
        ?.whereNotNull()
        .map((e) => Job.fromJson(e as Map<String, dynamic>))
        .toList(),
    jobsNotFound: (json['JobsNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}