to_hash model method