toJson method

Map<String, dynamic> toJson()

Converts a UsersShared object to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'request_id': requestId,
    'users': users.map((user) => user.toJson()).toList(),
  };
}