StructuredQuery.fromJson constructor
StructuredQuery.fromJson(
- Map json_
Implementation
StructuredQuery.fromJson(core.Map json_)
: this(
endAt: json_.containsKey('endAt')
? Cursor.fromJson(
json_['endAt'] as core.Map<core.String, core.dynamic>)
: null,
from: json_.containsKey('from')
? (json_['from'] as core.List)
.map((value) => CollectionSelector.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,
orderBy: json_.containsKey('orderBy')
? (json_['orderBy'] as core.List)
.map((value) => Order.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
select: json_.containsKey('select')
? Projection.fromJson(
json_['select'] as core.Map<core.String, core.dynamic>)
: null,
startAt: json_.containsKey('startAt')
? Cursor.fromJson(
json_['startAt'] as core.Map<core.String, core.dynamic>)
: null,
where: json_.containsKey('where')
? Filter.fromJson(
json_['where'] as core.Map<core.String, core.dynamic>)
: null,
);