BatchImportFindingsResponse.fromJson constructor

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

Implementation

factory BatchImportFindingsResponse.fromJson(Map<String, dynamic> json) {
  return BatchImportFindingsResponse(
    failedCount: json['FailedCount'] as int,
    successCount: json['SuccessCount'] as int,
    failedFindings: (json['FailedFindings'] as List?)
        ?.whereNotNull()
        .map((e) => ImportFindingsError.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}