title: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Client' in type cast in flutter?
body: <p>I want to get the Client name from the Api using fromMap() method as shown bellow:</p>
  <pre><code>factory Order.fromMap(Map&lt;String, dynamic&gt; map) {
    return Order(
     created_at: Tracker.decode(map['created_at']),
     id: map['id'],
     updated_at: Tracker.decode(map['updated_at']),
     total_price: map['total_price'],
     status: map['status'],
     client: map['client']
  
  
    );
   }
  </code></pre>
  <p>client is an object of Client Model ..
  I got the following error:<br />
  type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Client' in type cast...</p>
  <p>thank you for your help!</p>