Classifier.fromJson constructor

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

Implementation

factory Classifier.fromJson(Map<String, dynamic> json) {
  return Classifier(
    csvClassifier: json['CsvClassifier'] != null
        ? CsvClassifier.fromJson(
            json['CsvClassifier'] as Map<String, dynamic>)
        : null,
    grokClassifier: json['GrokClassifier'] != null
        ? GrokClassifier.fromJson(
            json['GrokClassifier'] as Map<String, dynamic>)
        : null,
    jsonClassifier: json['JsonClassifier'] != null
        ? JsonClassifier.fromJson(
            json['JsonClassifier'] as Map<String, dynamic>)
        : null,
    xMLClassifier: json['XMLClassifier'] != null
        ? XMLClassifier.fromJson(
            json['XMLClassifier'] as Map<String, dynamic>)
        : null,
  );
}