ListNetworksOutput.fromJson constructor

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

Implementation

factory ListNetworksOutput.fromJson(Map<String, dynamic> json) {
  return ListNetworksOutput(
    networks: (json['Networks'] as List?)
        ?.whereNotNull()
        .map((e) => NetworkSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}