How to Solve NameError: name 'Struct' is not defined -- google

Solution: Import the 'Struct' module

To Solve the error, add the following line to the top of your code.

from google.protobuf.struct_pb2 import Struct

 

For more information:
Python google Struct