title: No value associated with key CodingKeys(stringValue: \"data\", intValue: nil) (\"data\")
body: <p>If you wanna test Postman.. You can test on Postman. I couldn't decode data. How can I decode ?</p>
  <p><strong>Error:</strong></p>
  <p><strong>keyNotFound(CodingKeys(stringValue: &quot;data&quot;, intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: &quot;No value associated with key CodingKeys(stringValue: &quot;data&quot;, intValue: nil) (&quot;data&quot;).&quot;, underlyingError: nil))</strong></p>
  <p><a href="https://i.stack.imgur.com/wfQoS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wfQoS.png" alt="enter image description here" /></a></p>
  <p><strong>Model:</strong></p>
  <pre><code>// MARK: - CountryResponse
  struct CountryResponse: Codable {
      let countryData: [CountryData]
    
    enum CodingKeys: String, CodingKey {
      case countryData = &quot;data&quot;
    }
  }
  
  // MARK: - CountryData
  struct CountryData: Codable {
      let code: String
      let currencyCodes: [String]
      let name, wikiDataID: String
  
      enum CodingKeys: String, CodingKey {
          case code, currencyCodes, name
          case wikiDataID = &quot;wikiDataId&quot;
      }
  }
  </code></pre>
  <p><strong>Service:</strong></p>
  <pre><code>class CountryService {
      
      func getAllCountry() {
          
          if let url = URL(string: &quot;https://wft-geo-db.p.rapidapi.com/v1/geo/countries?limit=10&quot;) {
              var request = URLRequest(url: url)
              request.addValue(&quot;wft-geo-db.p.rapidapi.com&quot;, forHTTPHeaderField: &quot;x-rapidapi-host&quot;)
              request.addValue(&quot;api key&quot;, forHTTPHeaderField: &quot;x-rapidapi-key&quot;)
              request.httpMethod = &quot;GET&quot;
              
              let task = URLSession.shared.dataTask(with: url) { data, response, error in
                  guard let data = data else { return }
                  
                  do {
                      let response = try JSONDecoder().decode(CountryResponse.self, from: data)
                      print(&quot;response: \(response)&quot;)
                  } catch let error {
                      print(&quot;data decode edilemedi. \(error)&quot;)
                  }
                  
              }
              task.resume()
          } else {
              print(&quot;hatalı url.&quot;)
          }
      }
  }
  </code></pre>