toJson method
Converts the variable to a JSON map.
The resulting map matches Figma's API format and can be used for serialization or API requests.
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'resolvedType': resolvedType,
'valuesByMode': valuesByMode,
'variableCollectionId': variableCollectionId,
};