def METHOD_NAME(self, nestedUnionTest):
    if nestedUnionTest is None:
        return
    self.name = nestedUnionTest.Name()
    self.dataType = nestedUnionTest.DataType()
    self.data = MyGame.Example.NestedUnion.Any.AnyCreator(self.dataType, nestedUnionTest.Data())
    self.id = nestedUnionTest.Id()