title: Hive mapping boxes in Flutter
body: <p>I was searching and didn't find anything about this topic. I want to ask if there exists any mapper or automapper for Hive box, or what is the proper way to map boxes in Hive? For example I have:</p>
  <pre><code> class Company extends HiveObject {
    @HiveField(0)
    int id;
  
    @HiveField(1)
    String name;
  
    @HiveField(2)
    CompanyType type; //this is enum
  
    @HiveField(3)
    HiveList&lt;Person&gt; persons; 
  
    Person({this.id, this.name, this.type});
  }
  </code></pre>