QueryRequest.fromJson constructor

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,
      );