ResultRow.fromJson constructor

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

Implementation

factory ResultRow.fromJson(Map<String, dynamic> json) {
  return ResultRow(
    groupedBys: (json['GroupedBys'] as List)
        .whereNotNull()
        .map((e) => ResultRowValue.fromJson(e as Map<String, dynamic>))
        .toList(),
    values: (json['Values'] as List)
        .whereNotNull()
        .map((e) => ResultRowValue.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}