fromJson static method
Returns a new Query instance and imports its values from
json
if it's non-null, null if json
is null.
Implementation
static Query? fromJson(Map<String, dynamic>? json) => json == null
? null
: Query(
query: json[r'query'],
type: QueryTypeEnum.fromJson(json[r'type']),
params: json[r'params'],
dialect: Dialect.fromJson(json[r'dialect']),
now: json[r'now'] == null ? null : DateTime.parse(json[r'now']),
);