AssessmentRunNotification.fromJson constructor

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

Implementation

factory AssessmentRunNotification.fromJson(Map<String, dynamic> json) {
  return AssessmentRunNotification(
    date: nonNullableTimeStampFromJson(json['date'] as Object),
    error: json['error'] as bool,
    event: (json['event'] as String).toInspectorEvent(),
    message: json['message'] as String?,
    snsPublishStatusCode: (json['snsPublishStatusCode'] as String?)
        ?.toAssessmentRunNotificationSnsStatusCode(),
    snsTopicArn: json['snsTopicArn'] as String?,
  );
}