CustomerGatewayAssociation.fromJson constructor

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

Implementation

factory CustomerGatewayAssociation.fromJson(Map<String, dynamic> json) {
  return CustomerGatewayAssociation(
    customerGatewayArn: json['CustomerGatewayArn'] as String?,
    deviceId: json['DeviceId'] as String?,
    globalNetworkId: json['GlobalNetworkId'] as String?,
    linkId: json['LinkId'] as String?,
    state: (json['State'] as String?)?.toCustomerGatewayAssociationState(),
  );
}