toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['_id'] = this.sId;
data['path'] = this.path;
data['displayName'] = this.displayName;
data['updatedAt'] = this.updatedAt;
data['createdAt'] = this.createdAt;
data['userId'] = this.userId;
data['roles'] = this.roles;
data['flagCount'] = this.flagCount;
return data;
}