ListServersResponse.fromJson constructor

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

Implementation

factory ListServersResponse.fromJson(Map<String, dynamic> json) {
  return ListServersResponse(
    servers: (json['Servers'] as List)
        .whereNotNull()
        .map((e) => ListedServer.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}