RenderConfig.fromJson constructor
Reads a config from its toJson form (validating as the constructor).
Implementation
factory RenderConfig.fromJson(Map<String, Object?> json) => RenderConfig(
width: json['width']! as int,
height: json['height']! as int,
fps: json['fps']! as int,
frameCount: json['frameCount']! as int,
startFrame: json['startFrame']! as int,
quality: Quality.values.byName(json['quality']! as String),
cacheEnabled: json['cacheEnabled']! as bool,
);