DataQueryBuilder.fromJson constructor

DataQueryBuilder.fromJson(
  1. Map json
)

Implementation

DataQueryBuilder.fromJson(Map json) {
  pageSize = json['pageSize'];
  offset = json['offset'];
  properties = json['properties']?.cast<String>();
  excludeProperties = json['excludeProperties']?.cast<String>();
  whereClause = json['whereClause'];
  groupBy = json['groupBy']?.cast<String>();
  havingClause = json['havingClause'];
  sortBy = json['sortBy']?.cast<String>();
  related = json['related']?.cast<String>();
  if (json['relationsDepth'] != null)
    relationsDepth = json['relationsDepth'];
  else
    relationsDepth = DEFAULT_RELATIONS_DEPTH;
  relationsPageSize = json['relationsPageSize'];
  distinct = json['distinct'];
}