ListRoutesResponse.fromJson constructor

ListRoutesResponse.fromJson(
  1. Map json_
)

Implementation

ListRoutesResponse.fromJson(core.Map json_)
    : this(
        apiVersion: json_.containsKey('apiVersion')
            ? json_['apiVersion'] as core.String
            : null,
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) => Route.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metadata: json_.containsKey('metadata')
            ? ListMeta.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        unreachable: json_.containsKey('unreachable')
            ? (json_['unreachable'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );