toJson method
Converts a UsersShared object to JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'request_id': requestId,
'users': users.map((user) => user.toJson()).toList(),
};
}
Converts a UsersShared object to JSON object
Map<String, dynamic> toJson() {
return {
'request_id': requestId,
'users': users.map((user) => user.toJson()).toList(),
};
}