[ci skip] correct doc for serialization in accordance with API Doc Guide

How about `An +attributes+ hash must be defined and should contain any attributes you need to be serialized.`?