Returns a map of properties. This method is used internally by the SDK.
Map<String, dynamic> toMap();