toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
json[r'name'] = name;
json[r'image'] = image;
json[r'title'] = title;
json[r'color'] = color;
json[r'role'] = role;
return json;
}