DirectConnectGateway.fromJson constructor

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

Implementation

factory DirectConnectGateway.fromJson(Map<String, dynamic> json) {
  return DirectConnectGateway(
    amazonSideAsn: json['amazonSideAsn'] as int?,
    directConnectGatewayId: json['directConnectGatewayId'] as String?,
    directConnectGatewayName: json['directConnectGatewayName'] as String?,
    directConnectGatewayState: (json['directConnectGatewayState'] as String?)
        ?.toDirectConnectGatewayState(),
    ownerAccount: json['ownerAccount'] as String?,
    stateChangeError: json['stateChangeError'] as String?,
  );
}