Converts the object into a Layout for serialization.
Layout<Map<String, dynamic>> toLayout({String? property});