     }
 }
 
-struct dog {
+struct Dog:Decodable {
     var name:String
-    var aga:UInt
-}
-
-
-
-
+//    var aga:UInt
+    init(_ name:String) {
+        self.name = name
+    }
+    
+    init(from decoder:Decoder) {
+        let singleValueContainter = try! decoder.singleValueContainer()
+        let dogName = try! singleValueContainter.decode(String.self)
+        print(dogName)
+        self.init(dogName)
+    }
+}
+
+
+
+

struct Response<T:Decodable>:Decodable {
    var code:String
    var data:Any
    
    enum ResponseType : String{
        case ReponseTypeDictionary,ReponseTypeArray

    
    let decorationIdentifier = "DecorationViewID"
    
    let singleValueContainerJsonData = """
[
  "king",
  "paul",
  "lee"
]
""".data(using: .utf8)!
    
    let products = """
    [
