DirectConnectGatewayAttachment.fromJson constructor

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

Implementation

factory DirectConnectGatewayAttachment.fromJson(Map<String, dynamic> json) {
  return DirectConnectGatewayAttachment(
    attachmentState: (json['attachmentState'] as String?)
        ?.toDirectConnectGatewayAttachmentState(),
    attachmentType: (json['attachmentType'] as String?)
        ?.toDirectConnectGatewayAttachmentType(),
    directConnectGatewayId: json['directConnectGatewayId'] as String?,
    stateChangeError: json['stateChangeError'] as String?,
    virtualInterfaceId: json['virtualInterfaceId'] as String?,
    virtualInterfaceOwnerAccount:
        json['virtualInterfaceOwnerAccount'] as String?,
    virtualInterfaceRegion: json['virtualInterfaceRegion'] as String?,
  );
}