ListSpokesResponse.fromJson constructor

ListSpokesResponse.fromJson(
  1. Map _json
)

Implementation

ListSpokesResponse.fromJson(core.Map _json)
    : this(
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        spokes: _json.containsKey('spokes')
            ? (_json['spokes'] as core.List)
                .map((value) => Spoke.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        unreachable: _json.containsKey('unreachable')
            ? (_json['unreachable'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );