/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateFileSystemResponse response = new CreateFileSystemResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CreationToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FileSystemId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FileSystemId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LifeCycleState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LifeCycleState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NumberOfMountTargets", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.NumberOfMountTargets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OwnerId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OwnerId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SizeInBytes", targetDepth)) { var unmarshaller = FileSystemSizeUnmarshaller.Instance; response.SizeInBytes = unmarshaller.Unmarshall(context); continue; } } return response; }