GrokClassifier.fromJson constructor

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

Implementation

factory GrokClassifier.fromJson(Map<String, dynamic> json) {
  return GrokClassifier(
    classification: json['Classification'] as String,
    grokPattern: json['GrokPattern'] as String,
    name: json['Name'] as String,
    creationTime: timeStampFromJson(json['CreationTime']),
    customPatterns: json['CustomPatterns'] as String?,
    lastUpdated: timeStampFromJson(json['LastUpdated']),
    version: json['Version'] as int?,
  );
}