Destination.fromJson constructor

Destination.fromJson(
  1. Map json_
)

Implementation

Destination.fromJson(core.Map json_)
    : this(
        hosts: json_.containsKey('hosts')
            ? (json_['hosts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        httpHeaderMatch: json_.containsKey('httpHeaderMatch')
            ? HttpHeaderMatch.fromJson(json_['httpHeaderMatch']
                as core.Map<core.String, core.dynamic>)
            : null,
        methods: json_.containsKey('methods')
            ? (json_['methods'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        ports: json_.containsKey('ports')
            ? (json_['ports'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
      );