initial functional register page

This commit is contained in:
2023-08-31 18:38:22 -03:00
parent b65da2fe3a
commit 68766a03ad
2 changed files with 261 additions and 10 deletions
+39
View File
@@ -0,0 +1,39 @@
class UserModel {
int? id;
String? name;
String? companyname;
String? email;
String? channel;
String? usertype;
String? blocked;
String? cancelled;
String? createdby;
UserModel({this.id, this.name, this.companyname, this.email, this.channel, this.usertype, this.blocked, this.cancelled, this.createdby});
UserModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
companyname = json['companyname'];
email = json['email'];
channel = json['channel'];
usertype = json['usertype'];
blocked = json['blocked'];
cancelled = json['cancelled'];
createdby = json['createdby'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
data['companyname'] = companyname;
data['email'] = email;
data['channel'] = channel;
data['usertype'] = usertype;
data['blocked'] = blocked;
data['cancelled'] = cancelled;
data['createdby'] = createdby;
return data;
}
}