VpcPeeringConnection.fromJson constructor

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

Implementation

factory VpcPeeringConnection.fromJson(Map<String, dynamic> json) {
  return VpcPeeringConnection(
    fleetArn: json['FleetArn'] as String?,
    fleetId: json['FleetId'] as String?,
    gameLiftVpcId: json['GameLiftVpcId'] as String?,
    ipV4CidrBlock: json['IpV4CidrBlock'] as String?,
    peerVpcId: json['PeerVpcId'] as String?,
    status: json['Status'] != null
        ? VpcPeeringConnectionStatus.fromJson(
            json['Status'] as Map<String, dynamic>)
        : null,
    vpcPeeringConnectionId: json['VpcPeeringConnectionId'] as String?,
  );
}