Exemplo n.º 1
0
func ToZoneInfoBase(res map[string]interface{}) *ZoneInfoBase {
	return &ZoneInfoBase{
		DateUpdated: util.ToTime(res["date_updated"]),
		Id:          util.ToInt64(res["id"]),
		Name:        util.ToString(res["name"]),
		Public:      util.ToBool(res["public"]),
		Version:     util.ToInt64(res["version"]),
	}
}
Exemplo n.º 2
0
func toAutorenewInfo(res map[string]interface{}) *AutorenewInfo {
	return &AutorenewInfo{
		Active:        util.ToBool(res["active"]),
		Contact:       util.ToString(res["contact"]),
		Id:            util.ToInt64(res["id"]),
		ProductId:     util.ToInt64(res["product_id"]),
		ProductTypeId: util.ToInt64(res["product_type_id"]),
	}
}