title: Get object in json flutter
body: <p>I have this JSON output (using Chopper library)</p>
  
  <blockquote>
    <p>{"status":"success","error_message":[],"abc":[{"id":"124"},{"id":"125"}]}</p>
  </blockquote>
  
  <p>How can I get the id in object abc ?</p>
  
  <pre><code>Response response = await _repo.submitData(title, description);
  
  var abcResponse = ABCResponse.fromJson(response.body);
      if (abcResponse.status == 'success') {
         // I want print the latest id
    }
  }
  </code></pre>
  
  <p><strong>ABCResponse</strong></p>
  
  <pre><code>part 'abc_response.g.dart';
  
      @JsonSerializable()
      class ABCResponse extends BaseResponse {
        var abc = new List&lt;ABC&gt;();
        ABCResponse();
  
        factory ABCResponse.fromJson(Map&lt;String, dynamic&gt; json) =&gt;
            _$ABCResponse(json);
        Map&lt;String, dynamic&gt; toJason() =&gt; _$WABCResponseToJson(this);
      }
  </code></pre>
  
  <p><strong>ABC</strong></p>
  
  <pre><code> @JsonSerializable()
  class ABC {
  
    ABC();
    var id;
  }
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <pre><code> Response response = await _repository.submitData(title, description);
  
      var abcResponse = ABCResponse.fromJson(response.body);
      if (abcResponse.status == 'success') {
        var user = json.decode(abcResponse.abc.toString());
        print(user);   // it printing null value
      }
  </code></pre>