IoTJobAbortCriteria.fromJson constructor

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

Implementation

factory IoTJobAbortCriteria.fromJson(Map<String, dynamic> json) {
  return IoTJobAbortCriteria(
    action: (json['action'] as String).toIoTJobAbortAction(),
    failureType:
        (json['failureType'] as String).toIoTJobExecutionFailureType(),
    minNumberOfExecutedThings: json['minNumberOfExecutedThings'] as int,
    thresholdPercentage: json['thresholdPercentage'] as double,
  );
}