ToDeviceEvent.fromJson constructor

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

Implementation

factory ToDeviceEvent.fromJson(Map<String, dynamic> json) {
  final event = BasicEventWithSender.fromJson(json);
  return ToDeviceEvent(
      sender: event.senderId, type: event.type, content: event.content);
}