DirectConnectGatewayAssociationProposal.fromJson constructor
DirectConnectGatewayAssociationProposal.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DirectConnectGatewayAssociationProposal.fromJson(
Map<String, dynamic> json) {
return DirectConnectGatewayAssociationProposal(
associatedGateway: json['associatedGateway'] != null
? AssociatedGateway.fromJson(
json['associatedGateway'] as Map<String, dynamic>)
: null,
directConnectGatewayId: json['directConnectGatewayId'] as String?,
directConnectGatewayOwnerAccount:
json['directConnectGatewayOwnerAccount'] as String?,
existingAllowedPrefixesToDirectConnectGateway:
(json['existingAllowedPrefixesToDirectConnectGateway'] as List?)
?.whereNotNull()
.map((e) => RouteFilterPrefix.fromJson(e as Map<String, dynamic>))
.toList(),
proposalId: json['proposalId'] as String?,
proposalState: (json['proposalState'] as String?)
?.toDirectConnectGatewayAssociationProposalState(),
requestedAllowedPrefixesToDirectConnectGateway:
(json['requestedAllowedPrefixesToDirectConnectGateway'] as List?)
?.whereNotNull()
.map((e) => RouteFilterPrefix.fromJson(e as Map<String, dynamic>))
.toList(),
);
}