ErrorAnalysisAnnotation.fromJson constructor

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

Implementation

factory ErrorAnalysisAnnotation.fromJson(Map<String, dynamic> json) {
  return ErrorAnalysisAnnotation(
    attributedItems:
        decodeListMessage(
          json['attributedItems'],
          ErrorAnalysisAnnotation_AttributedItem.fromJson,
        ) ??
        [],
    queryType:
        decodeEnum(
          json['queryType'],
          ErrorAnalysisAnnotation_QueryType.fromJson,
        ) ??
        ErrorAnalysisAnnotation_QueryType.$default,
    outlierScore: decodeDouble(json['outlierScore']) ?? 0,
    outlierThreshold: decodeDouble(json['outlierThreshold']) ?? 0,
  );
}