DataReceivedEvent.fromJson constructor

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

Implementation

factory DataReceivedEvent.fromJson(Map<String, dynamic> json) {
  return DataReceivedEvent(
    requestId: RequestId.fromJson(json['requestId'] as String),
    timestamp: MonotonicTime.fromJson(json['timestamp'] as num),
    dataLength: json['dataLength'] as int,
    encodedDataLength: json['encodedDataLength'] as int,
  );
}