MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / constructor

Method constructor

front_end/models/har/HARFormat.ts:333–339  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

331 text: string;
332 comment: string|undefined;
333 constructor(data: any) {
334 super(data);
335 this.mimeType = String(data['mimeType']);
336 this.params = Array.isArray(data['params']) ? data['params'].map(param => new HARParam(param)) : [];
337 this.text = String(data['text']);
338 this.comment = HARBase.optionalString(data['comment']);
339 }
340}
341
342export class HARParam extends HARBase {

Callers

nothing calls this directly

Calls 4

StringInterface · 0.85
optionalStringMethod · 0.80
isArrayMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected