/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeLunaClientResponse response = new DescribeLunaClientResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Certificate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Certificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CertificateFingerprint", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CertificateFingerprint = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ClientArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Label", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Label = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedTimestamp", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LastModifiedTimestamp = unmarshaller.Unmarshall(context); continue; } } return response; }