@spec to_json(%Onvif.Media.Ver10.Profile.MulticastConfiguration{
auto_start: term(),
ip_address: term(),
port: term(),
ttl: term()
}) ::
{:error,
%{
:__exception__ => any(),
:__struct__ => Jason.EncodeError | Protocol.UndefinedError,
optional(atom()) => any()
}}
| {:ok, binary()}