NotifyWorkersResponse.fromJson constructor

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

Implementation

factory NotifyWorkersResponse.fromJson(Map<String, dynamic> json) {
  return NotifyWorkersResponse(
    notifyWorkersFailureStatuses: (json['NotifyWorkersFailureStatuses']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            NotifyWorkersFailureStatus.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}