DataItemView.fromJson constructor

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

Implementation

factory DataItemView.fromJson(Map<String, dynamic> json) {
  return DataItemView(
    dataItem: decode(json['dataItem'], DataItem.fromJson),
    annotations:
        decodeListMessage(json['annotations'], Annotation.fromJson) ?? [],
    hasTruncatedAnnotations: json['hasTruncatedAnnotations'] ?? false,
  );
}