ScreencastFrameEvent.fromJson constructor

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

Implementation

factory ScreencastFrameEvent.fromJson(Map<String, dynamic> json) {
  return ScreencastFrameEvent(
    data: json['data'] as String,
    metadata: ScreencastFrameMetadata.fromJson(
        json['metadata'] as Map<String, dynamic>),
    sessionId: json['sessionId'] as int,
  );
}