BatchStopResponse.fromJson constructor
Implementation
factory BatchStopResponse.fromJson(Map<String, dynamic> json) {
return BatchStopResponse(
failed: (json['failed'] as List?)
?.whereNotNull()
.map(
(e) => BatchFailedResultModel.fromJson(e as Map<String, dynamic>))
.toList(),
successful: (json['successful'] as List?)
?.whereNotNull()
.map((e) =>
BatchSuccessfulResultModel.fromJson(e as Map<String, dynamic>))
.toList(),
);
}