ReceivedMessageFromTargetEvent.fromJson constructor

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

Implementation

factory ReceivedMessageFromTargetEvent.fromJson(Map<String, dynamic> json) {
  return ReceivedMessageFromTargetEvent(
    sessionId: SessionID.fromJson(json['sessionId'] as String),
    message: json['message'] as String,
  );
}