StandardsControl.fromJson constructor

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

Implementation

factory StandardsControl.fromJson(Map<String, dynamic> json) {
  return StandardsControl(
    controlId: json['ControlId'] as String?,
    controlStatus: (json['ControlStatus'] as String?)?.toControlStatus(),
    controlStatusUpdatedAt: timeStampFromJson(json['ControlStatusUpdatedAt']),
    description: json['Description'] as String?,
    disabledReason: json['DisabledReason'] as String?,
    relatedRequirements: (json['RelatedRequirements'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    remediationUrl: json['RemediationUrl'] as String?,
    severityRating: (json['SeverityRating'] as String?)?.toSeverityRating(),
    standardsControlArn: json['StandardsControlArn'] as String?,
    title: json['Title'] as String?,
  );
}