PolicyComplianceDetail.fromJson constructor
PolicyComplianceDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PolicyComplianceDetail.fromJson(Map<String, dynamic> json) {
return PolicyComplianceDetail(
evaluationLimitExceeded: json['EvaluationLimitExceeded'] as bool?,
expiredAt: timeStampFromJson(json['ExpiredAt']),
issueInfoMap: (json['IssueInfoMap'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k.toDependentServiceName(), e as String)),
memberAccount: json['MemberAccount'] as String?,
policyId: json['PolicyId'] as String?,
policyOwner: json['PolicyOwner'] as String?,
violators: (json['Violators'] as List?)
?.whereNotNull()
.map((e) => ComplianceViolator.fromJson(e as Map<String, dynamic>))
.toList(),
);
}