public static TransactionLog ToDto(this TransactionLogEntity src) { if (src == null) { throw new ArgumentNullException(nameof(src)); } return(new TransactionLog { Address = src.Address, LogIndex = src.LogIndex, TransactionHash = src.TransactionHash, Topics = src.GetTopics().ToArray(), BlockTimestamp = src.BlockTimestamp }); }