As an alternative to commencement of annexation proceedings by a petition by the voters within any unincorporated territory, proposed to be annexed, the legislative body of an unincorporated territory may agree in writing upon the terms and conditions of annexation, which agreement may contain, among other things, provisions as set forth in Sections 90934 and 90935.