DirectUDPSocketChunkReceivedEvent.fromJson constructor

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

Implementation

factory DirectUDPSocketChunkReceivedEvent.fromJson(
  Map<String, dynamic> json,
) {
  return DirectUDPSocketChunkReceivedEvent(
    identifier: RequestId.fromJson(json['identifier'] as String),
    message: DirectUDPMessage.fromJson(
      json['message'] as Map<String, dynamic>,
    ),
    timestamp: MonotonicTime.fromJson(json['timestamp'] as num),
  );
}