FigmaVariableMode.fromJson constructor
Creates a FigmaVariableMode from a JSON map.
The JSON structure should match Figma's API response format for modes. Throws if required fields are missing or of incorrect type.
Implementation
factory FigmaVariableMode.fromJson(Map<String, dynamic> json) {
return FigmaVariableMode(
modeId: json['modeId'] as String,
name: json['name'] as String,
);
}