factory RenderingEngine.fromJson(Map<String, dynamic> json) { return RenderingEngine( name: (json['name'] as String?)?.toRenderingEngineType(), version: json['version'] as String?, ); }