JSON error (Swift 4) Cannot assign value of type 'String?' to type 'String?.Type' : Can't solve the error below & attached.

Code snippet:

------------------------------------------------------------------------
   
      `func setInfo(json: JSON) {
            self.name = json["name"].string
            self.email = json["email"].string
            
            let image = json["picture"].dictionary
            let imageData = image?["data"]?.dictionary
            self.pictureURL = imageData?["url"]?.string
        }
        
        func resetInfo() {
            self.name = nil
            self.email = nil
            self.pictureURL = nil`  

--------------------------------------------------------------------

Getting error message:

 **'Cannot assign value of type 'String?' to type 'String?.Type'** 

in the lines:

 **`self.name = json["name"].string`** 

& 

**`self.email = json["email"].string`**

[Screenshot of the error][1]

  [1]: https://i.stack.imgur.com/X2vRm.png