mirrored_repositories/Beacon/App/Beacon_app/lib/models


// ignore: unused_import
import 'package:flutter/rendering.dart';

class User {
  String username;
  String lastname;
  String firstname;
  String email;
  String password;
  String api_key;
  int id;

  User(this.username, this.lastname, this.firstname, this.email, this.password,
      this.id, this.api_key);

  factory User.fromJson(Map<String, dynamic> parsedJson) {
    return User(
        parsedJson['username'],
        parsedJson['lastname'],
        parsedJson['emailadress'],
        parsedJson['firstname'],
        parsedJson['password'],
        parsedJson['id'],
        parsedJson['api_key']);
  }
}
