DescribeDirectConnectGatewaysResult.fromJson constructor

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

Implementation

factory DescribeDirectConnectGatewaysResult.fromJson(
    Map<String, dynamic> json) {
  return DescribeDirectConnectGatewaysResult(
    directConnectGateways: (json['directConnectGateways'] as List?)
        ?.whereNotNull()
        .map((e) => DirectConnectGateway.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}