class LoginModel {
  int idUtilisateur;
  String email;
  int expire;
  String guid;
  String langage;
  String lastTraduction;
  String login;
  String nom;
  String prenom;
  String version;
  String photo;

  LoginModel(
      this.idUtilisateur,
      this.email,
      this.expire,
      this.guid,
      this.langage,
      this.lastTraduction,
      this.login,
      this.nom,
      this.prenom,
      this.version,
      this.photo);

  LoginModel.fromJson(Map<String, dynamic> json)
      : idUtilisateur = json['id_utilisateur'],
        email = json['email'],
        expire = json['expire'],
        guid = json['guid'],
        langage = json['langage'],
        lastTraduction = json['last_traduction'],
        login = json['login'],
        nom = json['nom'],
        prenom = json['prenom'],
        version = json['version'],
        photo = json['photo'];

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();

    data['id_utilisateur'] = this.idUtilisateur;
    data['email'] = this.email;
    data['expire'] = this.expire;
    data['guid'] = this.guid;
    data['langage'] = this.langage;
    data['last_traduction'] = this.lastTraduction;
    data['login'] = this.login;
    data['nom'] = this.nom;
    data['prenom'] = this.prenom;
    data['version'] = this.version;
    data['photo'] = this.photo;

    return data;
  }
}
