QueryRequest.fromJson constructor Null safety

QueryRequest.fromJson(
  1. Map _json
)

Implementation

QueryRequest.fromJson(core.Map _json)
    : this(
        effectiveConnectionType: _json.containsKey('effectiveConnectionType')
            ? _json['effectiveConnectionType'] as core.String
            : null,
        formFactor: _json.containsKey('formFactor')
            ? _json['formFactor'] as core.String
            : null,
        metrics: _json.containsKey('metrics')
            ? (_json['metrics'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        origin: _json.containsKey('origin')
            ? _json['origin'] as core.String
            : null,
        url: _json.containsKey('url') ? _json['url'] as core.String : null,
      );