A fire insurance policy shall contain a provision as follows: "It shall be optional with this company to take all, or any part, of the property at the agreed or appraised value, and also to repair, rebuild or replace the property destroyed or damaged with other of like kind and quality within a reasonable time, on giving notice of its intention so to do within 30 days after the receipt of the proof of loss herein required."
ORS 742.234