PolicyComplianceStatus.fromJson constructor

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

Implementation

factory PolicyComplianceStatus.fromJson(Map<String, dynamic> json) {
  return PolicyComplianceStatus(
    evaluationResults: (json['EvaluationResults'] as List?)
        ?.whereNotNull()
        .map((e) => EvaluationResult.fromJson(e as Map<String, dynamic>))
        .toList(),
    issueInfoMap: (json['IssueInfoMap'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k.toDependentServiceName(), e as String)),
    lastUpdated: timeStampFromJson(json['LastUpdated']),
    memberAccount: json['MemberAccount'] as String?,
    policyId: json['PolicyId'] as String?,
    policyName: json['PolicyName'] as String?,
    policyOwner: json['PolicyOwner'] as String?,
  );
}