[BZ-1142914] implement serialization of CompositeMaxDurationTrigger