Query.fromJson constructor
Query.fromJson(
- Map json_
Implementation
Query.fromJson(core.Map json_)
: this(
distinctOn: json_.containsKey('distinctOn')
? (json_['distinctOn'] as core.List)
.map((value) => PropertyReference.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
endCursor: json_.containsKey('endCursor')
? json_['endCursor'] as core.String
: null,
filter: json_.containsKey('filter')
? Filter.fromJson(
json_['filter'] as core.Map<core.String, core.dynamic>)
: null,
kind: json_.containsKey('kind')
? (json_['kind'] as core.List)
.map((value) => KindExpression.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
limit: json_.containsKey('limit') ? json_['limit'] as core.int : null,
offset:
json_.containsKey('offset') ? json_['offset'] as core.int : null,
order: json_.containsKey('order')
? (json_['order'] as core.List)
.map((value) => PropertyOrder.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
projection: json_.containsKey('projection')
? (json_['projection'] as core.List)
.map((value) => Projection.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
startCursor: json_.containsKey('startCursor')
? json_['startCursor'] as core.String
: null,
);