ComplianceSummaryItem.fromJson constructor

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

Implementation

factory ComplianceSummaryItem.fromJson(Map<String, dynamic> json) {
  return ComplianceSummaryItem(
    complianceType: json['ComplianceType'] as String?,
    compliantSummary: json['CompliantSummary'] != null
        ? CompliantSummary.fromJson(
            json['CompliantSummary'] as Map<String, dynamic>)
        : null,
    nonCompliantSummary: json['NonCompliantSummary'] != null
        ? NonCompliantSummary.fromJson(
            json['NonCompliantSummary'] as Map<String, dynamic>)
        : null,
  );
}