CrawlerMetrics.fromJson constructor

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

Implementation

factory CrawlerMetrics.fromJson(Map<String, dynamic> json) {
  return CrawlerMetrics(
    crawlerName: json['CrawlerName'] as String?,
    lastRuntimeSeconds: json['LastRuntimeSeconds'] as double?,
    medianRuntimeSeconds: json['MedianRuntimeSeconds'] as double?,
    stillEstimating: json['StillEstimating'] as bool?,
    tablesCreated: json['TablesCreated'] as int?,
    tablesDeleted: json['TablesDeleted'] as int?,
    tablesUpdated: json['TablesUpdated'] as int?,
    timeLeftSeconds: json['TimeLeftSeconds'] as double?,
  );
}