AdoptedStyleSheetsModifiedEvent.fromJson constructor

AdoptedStyleSheetsModifiedEvent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AdoptedStyleSheetsModifiedEvent.fromJson(Map<String, dynamic> json) {
  return AdoptedStyleSheetsModifiedEvent(
    nodeId: NodeId.fromJson(json['nodeId'] as int),
    adoptedStyleSheets: (json['adoptedStyleSheets'] as List)
        .map((e) => StyleSheetId.fromJson(e as String))
        .toList(),
  );
}