GetCustomerGatewayAssociationsResponse.fromJson constructor

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

Implementation

factory GetCustomerGatewayAssociationsResponse.fromJson(
    Map<String, dynamic> json) {
  return GetCustomerGatewayAssociationsResponse(
    customerGatewayAssociations: (json['CustomerGatewayAssociations']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            CustomerGatewayAssociation.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}