[Model] added toArray method