HTTPGetAction.fromJson constructor

HTTPGetAction.fromJson(
  1. Map json_
)

Implementation

HTTPGetAction.fromJson(core.Map json_)
    : this(
        host: json_.containsKey('host') ? json_['host'] as core.String : null,
        httpHeaders: json_.containsKey('httpHeaders')
            ? (json_['httpHeaders'] as core.List)
                .map((value) => HTTPHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        scheme: json_.containsKey('scheme')
            ? json_['scheme'] as core.String
            : null,
      );