Transaction constructor Null safety

Transaction()