toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
data['userId'] = this.userId;
data['name'] = this.name;
data['email'] = this.email;
data['countryCode'] = this.countryCode;
data['mobile'] = this.mobile;
data['profileUrl'] = this.profileUrl;
data['rslId'] = this.rslId.toString();
//data['role'] = this.role;
return data;
}