ListResourceServersResponse.fromJson constructor

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

Implementation

factory ListResourceServersResponse.fromJson(Map<String, dynamic> json) {
  return ListResourceServersResponse(
    resourceServers: (json['ResourceServers'] as List)
        .whereNotNull()
        .map((e) => ResourceServerType.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}