ServiceClientGenerator.CustomizationsModel.IsSubstitutedShape C# (CSharp) Method

IsSubstitutedShape() public method

Determines if the shape should be substituted with another
public IsSubstitutedShape ( string originalShapeName ) : bool
originalShapeName string The original shape
return bool
        public bool IsSubstitutedShape(string originalShapeName)
        {
            var substitutionsData = _documentRoot[ShapeSubstitutionsKey];
            if (substitutionsData == null)
                return false;

            var remapShape = substitutionsData[originalShapeName] as JsonData;
            return remapShape != null;
        }