EventSourceMessageReceivedEvent.fromJson constructor

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

Implementation

factory EventSourceMessageReceivedEvent.fromJson(Map<String, dynamic> json) {
  return EventSourceMessageReceivedEvent(
    requestId: RequestId.fromJson(json['requestId'] as String),
    timestamp: MonotonicTime.fromJson(json['timestamp'] as num),
    eventName: json['eventName'] as String,
    eventId: json['eventId'] as String,
    data: json['data'] as String,
  );
}