Removed the interface RecordDetails and used Object type for generalized functions.

Signed-off-by: Kavith Thiranga Lokuhewage <rc404mekt@gmail.com>