feature: changes on register page / useer model
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user