CSSStyleSheetHeader.fromJson constructor
CSSStyleSheetHeader.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CSSStyleSheetHeader.fromJson(Map<String, dynamic> json) {
return CSSStyleSheetHeader(
styleSheetId: StyleSheetId.fromJson(json['styleSheetId'] as String),
frameId: page.FrameId.fromJson(json['frameId'] as String),
sourceURL: json['sourceURL'] as String,
sourceMapURL: json.containsKey('sourceMapURL')
? json['sourceMapURL'] as String
: null,
origin: StyleSheetOrigin.fromJson(json['origin'] as String),
title: json['title'] as String,
ownerNode: json.containsKey('ownerNode')
? dom.BackendNodeId.fromJson(json['ownerNode'] as int)
: null,
disabled: json['disabled'] as bool? ?? false,
hasSourceURL: json.containsKey('hasSourceURL')
? json['hasSourceURL'] as bool
: null,
isInline: json['isInline'] as bool? ?? false,
isMutable: json['isMutable'] as bool? ?? false,
isConstructed: json['isConstructed'] as bool? ?? false,
startLine: json['startLine'] as num,
startColumn: json['startColumn'] as num,
length: json['length'] as num,
endLine: json['endLine'] as num,
endColumn: json['endColumn'] as num,
loadingFailed: json.containsKey('loadingFailed')
? json['loadingFailed'] as bool
: null,
);
}