Converts this variable info to a JSON-serializable map.
Map<String, dynamic> toJson() => { 'name': name, 'valueType': valueType, 'isNull': isNull, };