Crawl.fromJson constructor

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

Implementation

factory Crawl.fromJson(Map<String, dynamic> json) {
  return Crawl(
    completedOn: timeStampFromJson(json['CompletedOn']),
    errorMessage: json['ErrorMessage'] as String?,
    logGroup: json['LogGroup'] as String?,
    logStream: json['LogStream'] as String?,
    startedOn: timeStampFromJson(json['StartedOn']),
    state: (json['State'] as String?)?.toCrawlState(),
  );
}