JobProcessDetails.fromJson constructor

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

Implementation

factory JobProcessDetails.fromJson(Map<String, dynamic> json) {
  return JobProcessDetails(
    numberOfCanceledThings: json['numberOfCanceledThings'] as int?,
    numberOfFailedThings: json['numberOfFailedThings'] as int?,
    numberOfInProgressThings: json['numberOfInProgressThings'] as int?,
    numberOfQueuedThings: json['numberOfQueuedThings'] as int?,
    numberOfRejectedThings: json['numberOfRejectedThings'] as int?,
    numberOfRemovedThings: json['numberOfRemovedThings'] as int?,
    numberOfSucceededThings: json['numberOfSucceededThings'] as int?,
    numberOfTimedOutThings: json['numberOfTimedOutThings'] as int?,
    processingTargets: (json['processingTargets'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}