AuditMitigationActionsTaskTarget.fromJson constructor

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

Implementation

factory AuditMitigationActionsTaskTarget.fromJson(Map<String, dynamic> json) {
  return AuditMitigationActionsTaskTarget(
    auditCheckToReasonCodeFilter: (json['auditCheckToReasonCodeFilter']
            as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(
            k, (e as List).whereNotNull().map((e) => e as String).toList())),
    auditTaskId: json['auditTaskId'] as String?,
    findingIds: (json['findingIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}