Swift - fromJSON, fromDictionary.