GetTransitGatewayConnectPeerAssociationsResponse.fromJson constructor

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

Implementation

factory GetTransitGatewayConnectPeerAssociationsResponse.fromJson(
    Map<String, dynamic> json) {
  return GetTransitGatewayConnectPeerAssociationsResponse(
    nextToken: json['NextToken'] as String?,
    transitGatewayConnectPeerAssociations:
        (json['TransitGatewayConnectPeerAssociations'] as List?)
            ?.whereNotNull()
            .map((e) => TransitGatewayConnectPeerAssociation.fromJson(
                e as Map<String, dynamic>))
            .toList(),
  );
}