factory RutokenDeviceEvent.fromJSON(Map<String, dynamic> json) { return RutokenDeviceEvent( type: RutokenDeviceEventType.fromString(json['type']), name: json['deviceName'], ); }