ListProxySessionsResponse.fromJson constructor

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

Implementation

factory ListProxySessionsResponse.fromJson(Map<String, dynamic> json) {
  return ListProxySessionsResponse(
    nextToken: json['NextToken'] as String?,
    proxySessions: (json['ProxySessions'] as List?)
        ?.whereNotNull()
        .map((e) => ProxySession.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}