IsolationModeHighlightConfig.fromJson constructor
IsolationModeHighlightConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory IsolationModeHighlightConfig.fromJson(Map<String, dynamic> json) {
return IsolationModeHighlightConfig(
resizerColor: json.containsKey('resizerColor')
? dom.RGBA.fromJson(json['resizerColor'] as Map<String, dynamic>)
: null,
resizerHandleColor: json.containsKey('resizerHandleColor')
? dom.RGBA
.fromJson(json['resizerHandleColor'] as Map<String, dynamic>)
: null,
maskColor: json.containsKey('maskColor')
? dom.RGBA.fromJson(json['maskColor'] as Map<String, dynamic>)
: null,
);
}