                 contact.emailAddresses.append(CNLabeledValue(label:emailLabel, value:email["value"]! as NSString))
             }
         }
-        
+
         //Postal addresses
         if let postalAddresses = dictionary["postalAddresses"] as? [[String:String]]{
             for postalAddress in postalAddresses{

                contact.postalAddresses.append(CNLabeledValue(label:label, value:newAddress))
            }
        }
        
        return contact
    }
    

        if let avatarData = (dictionary["avatar"] as? FlutterStandardTypedData)?.data {
            contact.imageData = avatarData
        }

        //Phone numbers
        if let phoneNumbers = dictionary["phones"] as? [[String:String]]{
            for phone in phoneNumbers where phone["value"] != nil {
                contact.phoneNumbers.append(CNLabeledValue(label:getPhoneLabel(label:phone["label"]),value:CNPhoneNumber(stringValue:phone["value"]!)))
            }
        }

        //Emails
        if let emails = dictionary["emails"] as? [[String:String]]{
            for email in emails where nil != email["value"] {
