title: Is there a type for dictionary in Dart?
body: <p>I'm trying to get a request from this link: <a href="https://cms.paladins.com/wp-json/wp/v2/champions?slug=dredge&amp;lang_id=1" rel="nofollow noreferrer">https://cms.paladins.com/wp-json/wp/v2/champions?slug=dredge&amp;lang_id=1</a> and transform a class in dart by:
  <a href="https://javiercbk.github.io/json_to_dart/" rel="nofollow noreferrer">https://javiercbk.github.io/json_to_dart/</a></p>
  
  <p>But the problem is: the site is generating some strange code that i cant understand:</p>
  
  <p>In inspect of chrome i have:</p>
  
  <pre><code>api_information {
  Ability1: "Cursed Howitzer"
  Ability2: "Broadside"
  Ability3: "Harpoon"
  Ability4: "Shortcut"
  Ability5: "Kraken"
  AbilityId1: 23600
  AbilityId2: 23611
  AbilityId3: 23612
  AbilityId4: 23622
  AbilityId5: 23613
  Ability_1: {,…}
  Ability_2: {,…}
  Ability_3: {,…}
  Ability_4: {,…}
  Ability_5: {,…}
  ....
  </code></pre>
  
  <p>But when i translate to Dart:</p>
  
  <pre><code>class ApiInformation {
    String ability1;
    String ability2;
    String ability3;
    String ability4;
    String ability5;
    int abilityId1;
    int abilityId2;
    int abilityId3;
    int abilityId4;
    int abilityId5;
    Ability1 ability1;
    Ability1 ability2;
    Ability1 ability3;
    Ability1 ability4;
    Ability1 ability5;
  ....
  </code></pre>
  
  <p>I get the int and the string, but why he create a new Class for every dictionary? Is there a type for dictionary in Dart? And why he rename <code>ability_1</code> to <code>ability1</code> is there a pattern in Dart about underscore?</p>