import 'package:objectbox/objectbox.dart'; import 'package:mobdr/objectbox.g.dart'; // ignore_for_file: public_member_api_docs @Entity() class Visite { // specify the id @Id() int id = 0; int id_visite; String type_visite; String title; bool allDay; String start; int id_distrib_visite; int id_etab; int abandon; String end; Visite( {this.id = 0, required this.id_visite, required this.type_visite, required this.title, required this.allDay, required this.start, required this.id_distrib_visite, required this.id_etab, required this.abandon, required this.end}); Visite.fromJson(Map json) : id_visite = json['id_visite'], type_visite = json['type_visite'], title = json['title'], allDay = json['allDay'], start = json['start'], id_distrib_visite = json['id_distrib_visite'], id_etab = json['id_etab'], abandon = json['abandon'], end = json['end']; }