FrameAttachedEvent.fromJson constructor

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

Implementation

factory FrameAttachedEvent.fromJson(Map<String, dynamic> json) {
  return FrameAttachedEvent(
    frameId: FrameId.fromJson(json['frameId'] as String),
    parentFrameId: FrameId.fromJson(json['parentFrameId'] as String),
    stack: json.containsKey('stack')
        ? runtime.StackTraceData.fromJson(
            json['stack'] as Map<String, dynamic>)
        : null,
  );
}