toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
json[r'name'] = name;
if (image != null) {
json[r'image'] = image;
}
json[r'value'] = value;
json[r'shared'] = shared;
return json;
}