public ClusterStatus Unmarshall(JsonUnmarshallerContext context)
        {
            context.Read();
            if (context.CurrentTokenType == JsonToken.Null)
            {
                return(null);
            }
            ClusterStatus clusterStatus = new ClusterStatus();


            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("State", targetDepth))
                {
                    clusterStatus.State = StringUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }

                if (context.TestExpression("StateChangeReason", targetDepth))
                {
                    clusterStatus.StateChangeReason = ClusterStateChangeReasonUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }

                if (context.TestExpression("Timeline", targetDepth))
                {
                    clusterStatus.Timeline = ClusterTimelineUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }
            }

            return(clusterStatus);
        }
 public static ClusterStateChangeReasonUnmarshaller GetInstance()
 {
     if (instance == null)
     {
         instance = new ClusterStateChangeReasonUnmarshaller();
     }
     return(instance);
 }