@spec to_json(%Onvif.Media.Ver10.Profile.AudioSourceConfiguration{
name: term(),
reference_token: term(),
source_token: term(),
use_count: term()
}) ::
{:error,
%{
:__exception__ => any(),
:__struct__ => Jason.EncodeError | Protocol.UndefinedError,
optional(atom()) => any()
}}
| {:ok, binary()}