toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final userGroups = this.userGroups;
  final userIds = this.userIds;
  return {
    if (userGroups != null) 'userGroups': userGroups,
    if (userIds != null) 'userIds': userIds,
  };
}