$Query.fromJson constructor Null safety

$Query.fromJson(
  1. Map _json
)

Implementation

$Query.fromJson(core.Map _json)
    : this(
        endTime: _json.containsKey('endTime')
            ? _json['endTime'] as core.String
            : null,
        startTime: _json.containsKey('startTime')
            ? _json['startTime'] as core.String
            : null,
        terms:
            _json.containsKey('terms') ? _json['terms'] as core.String : null,
      );