39 lines
863 B
Dart
39 lines
863 B
Dart
import 'package:objectbox/objectbox.dart';
|
|
import 'package:mobdr/objectbox.g.dart';
|
|
|
|
// ignore_for_file: public_member_api_docs
|
|
|
|
@Entity()
|
|
class Etab {
|
|
// specify the id
|
|
@Id()
|
|
int id = 0;
|
|
|
|
int id_etab;
|
|
String nom;
|
|
String mail;
|
|
String tel;
|
|
String url_photo_principale;
|
|
String longitude;
|
|
String latitude;
|
|
|
|
Etab(
|
|
{this.id = 0,
|
|
required this.id_etab,
|
|
required this.nom,
|
|
required this.mail,
|
|
required this.tel,
|
|
required this.url_photo_principale,
|
|
required this.longitude,
|
|
required this.latitude});
|
|
|
|
Etab.fromJson(Map<String, dynamic> json)
|
|
: id_etab = json['id_etab'],
|
|
nom = json['nom'],
|
|
mail = json['mail'],
|
|
tel = json['tel'],
|
|
url_photo_principale = json['url_photo_principale'],
|
|
longitude = json['longitude'],
|
|
latitude = json['latitude'];
|
|
}
|