toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['userId'] = this.userId;
data['fullName'] = this.fullName;
data['email'] = this.email;
data['mobile'] = this.mobile;
data['role'] = this.role;
data['organization'] = this.organization;
data['designation'] = this.designation;
data['address'] = this.address;
data['profilePicture'] = this.profilePicture;
data['active'] = this.active;
data['createdAt'] = this.createdAt;
data['updatedAt'] = this.updatedAt;
return data;
}