TransitGatewayConnectPeerAssociation.fromJson constructor

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

Implementation

factory TransitGatewayConnectPeerAssociation.fromJson(
    Map<String, dynamic> json) {
  return TransitGatewayConnectPeerAssociation(
    deviceId: json['DeviceId'] as String?,
    globalNetworkId: json['GlobalNetworkId'] as String?,
    linkId: json['LinkId'] as String?,
    state: (json['State'] as String?)
        ?.toTransitGatewayConnectPeerAssociationState(),
    transitGatewayConnectPeerArn:
        json['TransitGatewayConnectPeerArn'] as String?,
  );
}