public static AddDomainResponse Unmarshall(UnmarshallerContext context) { AddDomainResponse addDomainResponse = new AddDomainResponse(); addDomainResponse.HttpResponse = context.HttpResponse; addDomainResponse.RequestId = context.StringValue("AddDomain.RequestId"); addDomainResponse.DomainId = context.StringValue("AddDomain.DomainId"); addDomainResponse.DomainName = context.StringValue("AddDomain.DomainName"); addDomainResponse.PunyCode = context.StringValue("AddDomain.PunyCode"); addDomainResponse.GroupId = context.StringValue("AddDomain.GroupId"); addDomainResponse.GroupName = context.StringValue("AddDomain.GroupName"); List<string> dnsServers = new List<string>(); for (int i = 0; i < context.Length("AddDomain.DnsServers.Length"); i++) { dnsServers.Add(context.StringValue("AddDomain.DnsServers["+ i +"]")); } addDomainResponse.DnsServers = dnsServers; return addDomainResponse; }