DescribeServersResponse.fromJson constructor

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

Implementation

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