ComplianceDetails.fromJson constructor

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

Implementation

factory ComplianceDetails.fromJson(Map<String, dynamic> json) {
  return ComplianceDetails(
    complianceStatus: json['ComplianceStatus'] as bool?,
    keysWithNoncompliantValues: (json['KeysWithNoncompliantValues'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    noncompliantKeys: (json['NoncompliantKeys'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}