feature: changes on register page / useer model

This commit is contained in:
2023-09-19 18:23:36 -03:00
parent b8958f4c5a
commit 8601b2ac6b
8 changed files with 161 additions and 77 deletions
+33
View File
@@ -0,0 +1,33 @@
class Events {
int? id;
String? name;
String? description;
String? startDt;
int? user;
String? eventtype;
String? transmitted;
Events({this.id, this.name, this.description, this.startDt, this.user, this.eventtype, this.transmitted});
Events.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
description = json['description'];
startDt = json['startDt'];
user = json['user'];
eventtype = json['eventtype'];
transmitted = json['transmitted'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
data['description'] = description;
data['startDt'] = startDt;
data['user'] = user;
data['eventtype'] = eventtype;
data['transmitted'] = transmitted;
return data;
}
}
+7 -1
View File
@@ -3,20 +3,24 @@ class UserModel {
String? message;
String? name;
String? companyname;
String? url;
String? email;
String? channel;
String? cpfcnpj;
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({this.id, this.name, this.companyname, this.email, this.channel, this.usertype, this.blocked, this.cancelled, this.createdby, this.cpfcnpj, this.url});
UserModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
message = json['message'] ?? '';
name = json['name'];
companyname = json['companyname'];
url = json['url'];
cpfcnpj = json['cpfcnpj'];
email = json['email'];
channel = json['channel'];
usertype = json['usertype'];
@@ -31,6 +35,8 @@ class UserModel {
data['message'] = message;
data['name'] = name;
data['companyname'] = companyname;
data['url'] = url;
data['cpfcnpj'] = cpfcnpj;
data['email'] = email;
data['channel'] = channel;
data['usertype'] = usertype;