factory StreamingError.fromJson(Map<String, dynamic> map) { return StreamingError( map['error'] as String, map['request_id'] as String?, ); }