ListServerNeighborsResponse.fromJson constructor

ListServerNeighborsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListServerNeighborsResponse.fromJson(Map<String, dynamic> json) {
  return ListServerNeighborsResponse(
    neighbors: (json['neighbors'] as List)
        .whereNotNull()
        .map((e) =>
            NeighborConnectionDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    knownDependencyCount: json['knownDependencyCount'] as int?,
    nextToken: json['nextToken'] as String?,
  );
}