Initialize MVVM architecture
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import 'package:astronote_app/models/companie.dart';
|
||||
import 'package:astronote_app/models/company.dart';
|
||||
|
||||
class User {
|
||||
class UserDatas {
|
||||
String lastname;
|
||||
List<Companie> companies;
|
||||
String firstname;
|
||||
String civilite;
|
||||
|
||||
User({this.lastname, this.companies, this.firstname, this.civilite});
|
||||
UserDatas({this.lastname, this.companies, this.firstname, this.civilite});
|
||||
|
||||
|
||||
User.fromJson(Map<String, dynamic> json) {
|
||||
UserDatas.fromJson(Map<String, dynamic> json) {
|
||||
lastname = json['lastname'];
|
||||
if (json['companies'] != null) {
|
||||
companies = new List<Companie>();
|
||||
|
||||
Reference in New Issue
Block a user