DetectMitigationActionExecution.fromJson constructor

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

Implementation

factory DetectMitigationActionExecution.fromJson(Map<String, dynamic> json) {
  return DetectMitigationActionExecution(
    actionName: json['actionName'] as String?,
    errorCode: json['errorCode'] as String?,
    executionEndDate: timeStampFromJson(json['executionEndDate']),
    executionStartDate: timeStampFromJson(json['executionStartDate']),
    message: json['message'] as String?,
    status: (json['status'] as String?)
        ?.toDetectMitigationActionExecutionStatus(),
    taskId: json['taskId'] as String?,
    thingName: json['thingName'] as String?,
    violationId: json['violationId'] as String?,
  );
}